Update metadata.go

This commit is contained in:
wwqgtxx 2025-11-28 23:37:58 +08:00 committed by GitHub
parent cfd166e59a
commit 7761a6470e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,8 +39,8 @@ const (
HYSTERIA2
ANYTLS
MIERU
INNER
SUDOKU
INNER
)
type AddrType byte
@ -113,10 +113,10 @@ func (t Type) String() string {
return "AnyTLS"
case MIERU:
return "Mieru"
case INNER:
return "Inner"
case SUDOKU:
return "Sudoku"
case INNER:
return "Inner"
default:
return "Unknown"
}
@ -157,10 +157,10 @@ func ParseType(t string) (*Type, error) {
res = ANYTLS
case "MIERU":
res = MIERU
case "INNER":
res = INNER
case "SUDOKU":
res = SUDOKU
case "INNER":
res = INNER
default:
return nil, fmt.Errorf("unknown type: %s", t)
}