mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 09:17:12 +00:00
feat: support trusttunnel inbound and outbound
This commit is contained in:
@@ -46,6 +46,7 @@ const (
|
||||
AnyTLS
|
||||
Sudoku
|
||||
Masque
|
||||
TrustTunnel
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -215,6 +216,8 @@ func (at AdapterType) String() string {
|
||||
return "Sudoku"
|
||||
case Masque:
|
||||
return "Masque"
|
||||
case TrustTunnel:
|
||||
return "TrustTunnel"
|
||||
case Relay:
|
||||
return "Relay"
|
||||
case Selector:
|
||||
|
||||
@@ -40,6 +40,7 @@ const (
|
||||
ANYTLS
|
||||
MIERU
|
||||
SUDOKU
|
||||
TRUSTTUNNEL
|
||||
INNER
|
||||
)
|
||||
|
||||
@@ -115,6 +116,8 @@ func (t Type) String() string {
|
||||
return "Mieru"
|
||||
case SUDOKU:
|
||||
return "Sudoku"
|
||||
case TRUSTTUNNEL:
|
||||
return "TrustTunnel"
|
||||
case INNER:
|
||||
return "Inner"
|
||||
default:
|
||||
@@ -159,6 +162,8 @@ func ParseType(t string) (*Type, error) {
|
||||
res = MIERU
|
||||
case "SUDOKU":
|
||||
res = SUDOKU
|
||||
case "TRUSTTUNNEL":
|
||||
res = TRUSTTUNNEL
|
||||
case "INNER":
|
||||
res = INNER
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user