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

Function trimInbound

internal/serverapi/inbounds.go:484–494  ·  view source on GitHub ↗

trimInbound 对 Inbound 的所有字符串字段做 TrimSpace。

(ib *inbounds.Inbound)

Source from the content-addressed store, hash-verified

482
483// trimInbound 对 Inbound 的所有字符串字段做 TrimSpace。
484func trimInbound(ib *inbounds.Inbound) {
485 ib.Tag = strings.TrimSpace(ib.Tag)
486 ib.Method = strings.TrimSpace(ib.Method)
487 ib.Password = strings.TrimSpace(ib.Password)
488 ib.Security = strings.TrimSpace(ib.Security)
489 ib.RealityPrivateKey = strings.TrimSpace(ib.RealityPrivateKey)
490 ib.RealityPublicKey = strings.TrimSpace(ib.RealityPublicKey)
491 ib.RealityHandshakeAddr = strings.TrimSpace(ib.RealityHandshakeAddr)
492 ib.RealityShortID = strings.TrimSpace(ib.RealityShortID)
493 ib.OutboundID = strings.TrimSpace(ib.OutboundID)
494}

Callers 2

handleInboundsMethod · 0.85
handleInboundRoutesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected