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 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)
} }