MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / tlsStreamNodeGateFallback

Function tlsStreamNodeGateFallback

internal/proxycfg/xray.go:906–915  ·  view source on GitHub ↗
(protocol string)

Source from the content-addressed store, hash-verified

904}
905
906func 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 协议约定的字段集合。
918type hy2Extra struct {

Callers 1

tlsStreamForNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected