(protocol string)
| 904 | } |
| 905 | |
| 906 | func tlsStreamNodeGateFallback(protocol string) *xrayStream { |
| 907 | if protocol == "trojan" { |
| 908 | return &xrayStream{ |
| 909 | Network: "ws", |
| 910 | Security: "none", |
| 911 | WSSettings: &xrayWSSettings{Path: "/ws"}, |
| 912 | } |
| 913 | } |
| 914 | return &xrayStream{Network: "tcp", Security: "none"} |
| 915 | } |
| 916 | |
| 917 | // hy2Extra 是 Inbound.Extra 中 hy2 协议约定的字段集合。 |
| 918 | type hy2Extra struct { |