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

Function nameKey

internal/subscription/vless.go:79–84  ·  view source on GitHub ↗

nameKey 返回 host 的命名分组 key(用于自动编号)。

(h inbounds.Host)

Source from the content-addressed store, hash-verified

77
78// nameKey 返回 host 的命名分组 key(用于自动编号)。
79func nameKey(h inbounds.Host) string {
80 if h.Country == "" && h.Region == "" && h.Network == "" && h.Entry == "" {
81 return ""
82 }
83 return h.Country + "|" + h.Region + "|" + h.Network + "|" + h.Entry
84}
85
86type hostEntry struct {
87 ib inbounds.Inbound

Callers 1

BuildLinksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected