mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-04 04:47:30 +00:00
feat: add Sudoku protocol inbound & outbound support (#2397)
This commit is contained in:
@@ -44,6 +44,7 @@ const (
|
||||
Ssh
|
||||
Mieru
|
||||
AnyTLS
|
||||
Sudoku
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -230,6 +231,8 @@ func (at AdapterType) String() string {
|
||||
return "Mieru"
|
||||
case AnyTLS:
|
||||
return "AnyTLS"
|
||||
case Sudoku:
|
||||
return "Sudoku"
|
||||
case Relay:
|
||||
return "Relay"
|
||||
case Selector:
|
||||
|
||||
@@ -39,6 +39,7 @@ const (
|
||||
HYSTERIA2
|
||||
ANYTLS
|
||||
MIERU
|
||||
SUDOKU
|
||||
INNER
|
||||
)
|
||||
|
||||
@@ -112,6 +113,8 @@ func (t Type) String() string {
|
||||
return "AnyTLS"
|
||||
case MIERU:
|
||||
return "Mieru"
|
||||
case SUDOKU:
|
||||
return "Sudoku"
|
||||
case INNER:
|
||||
return "Inner"
|
||||
default:
|
||||
@@ -154,6 +157,8 @@ func ParseType(t string) (*Type, error) {
|
||||
res = ANYTLS
|
||||
case "MIERU":
|
||||
res = MIERU
|
||||
case "SUDOKU":
|
||||
res = SUDOKU
|
||||
case "INNER":
|
||||
res = INNER
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user