tlsStreamForNode 生成 Trojan / AnyTLS 的 StreamSettings。 NodeGate 终止 TLS:Trojan 使用 WS transport,AnyTLS 使用裸 TCP;均无 TLS(由 NodeGate 终止)。
(ib inbounds.Inbound, opts BuildOptions)
| 900 | // tlsStreamForNode 生成 Trojan / AnyTLS 的 StreamSettings。 |
| 901 | // NodeGate 终止 TLS:Trojan 使用 WS transport,AnyTLS 使用裸 TCP;均无 TLS(由 NodeGate 终止)。 |
| 902 | func tlsStreamForNode(ib inbounds.Inbound, opts BuildOptions) (*xrayStream, error) { |
| 903 | return tlsStreamNodeGateFallback(ib.Protocol), nil |
| 904 | } |
| 905 | |
| 906 | func tlsStreamNodeGateFallback(protocol string) *xrayStream { |
| 907 | if protocol == "trojan" { |
no test coverage detected