mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-19 16:30:07 +08:00
Update metadata.go
This commit is contained in:
parent
cfd166e59a
commit
7761a6470e
@ -39,8 +39,8 @@ const (
|
|||||||
HYSTERIA2
|
HYSTERIA2
|
||||||
ANYTLS
|
ANYTLS
|
||||||
MIERU
|
MIERU
|
||||||
INNER
|
|
||||||
SUDOKU
|
SUDOKU
|
||||||
|
INNER
|
||||||
)
|
)
|
||||||
|
|
||||||
type AddrType byte
|
type AddrType byte
|
||||||
@ -113,10 +113,10 @@ func (t Type) String() string {
|
|||||||
return "AnyTLS"
|
return "AnyTLS"
|
||||||
case MIERU:
|
case MIERU:
|
||||||
return "Mieru"
|
return "Mieru"
|
||||||
case INNER:
|
|
||||||
return "Inner"
|
|
||||||
case SUDOKU:
|
case SUDOKU:
|
||||||
return "Sudoku"
|
return "Sudoku"
|
||||||
|
case INNER:
|
||||||
|
return "Inner"
|
||||||
default:
|
default:
|
||||||
return "Unknown"
|
return "Unknown"
|
||||||
}
|
}
|
||||||
@ -157,10 +157,10 @@ func ParseType(t string) (*Type, error) {
|
|||||||
res = ANYTLS
|
res = ANYTLS
|
||||||
case "MIERU":
|
case "MIERU":
|
||||||
res = MIERU
|
res = MIERU
|
||||||
case "INNER":
|
|
||||||
res = INNER
|
|
||||||
case "SUDOKU":
|
case "SUDOKU":
|
||||||
res = SUDOKU
|
res = SUDOKU
|
||||||
|
case "INNER":
|
||||||
|
res = INNER
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unknown type: %s", t)
|
return nil, fmt.Errorf("unknown type: %s", t)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user