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

Function xrayStreamForInbound

internal/proxycfg/xray.go:742–747  ·  view source on GitHub ↗

xrayStreamForInbound 根据 inbound 配置生成 Xray streamSettings。

(ib inbounds.Inbound)

Source from the content-addressed store, hash-verified

740
741// xrayStreamForInbound 根据 inbound 配置生成 Xray streamSettings。
742func xrayStreamForInbound(ib inbounds.Inbound) *xrayStream {
743 if ib.Protocol == "vless" && ib.Security == "reality" {
744 return xrayRealityStreamFor(ib)
745 }
746 return nil
747}
748
749// xrayRealityStreamFor 生成 Reality streamSettings。
750func xrayRealityStreamFor(ib inbounds.Inbound) *xrayStream {

Callers 1

BuildXrayConfigFunction · 0.85

Calls 1

xrayRealityStreamForFunction · 0.85

Tested by

no test coverage detected