feat: inbound support trojan

This commit is contained in:
wwqgtxx
2025-02-25 10:30:27 +08:00
parent e23f40a56b
commit 91324b76d2
11 changed files with 512 additions and 28 deletions

View File

@@ -28,6 +28,7 @@ const (
VLESS
REDIR
TPROXY
TROJAN
TUNNEL
TUN
TUIC
@@ -77,6 +78,8 @@ func (t Type) String() string {
return "Redir"
case TPROXY:
return "TProxy"
case TROJAN:
return "Trojan"
case TUNNEL:
return "Tunnel"
case TUN:
@@ -115,6 +118,8 @@ func ParseType(t string) (*Type, error) {
res = REDIR
case "TPROXY":
res = TPROXY
case "TROJAN":
res = TROJAN
case "TUNNEL":
res = TUNNEL
case "TUN":