nameKey 返回 host 的命名分组 key(用于自动编号)。
(h inbounds.Host)
| 77 | |
| 78 | // nameKey 返回 host 的命名分组 key(用于自动编号)。 |
| 79 | func 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 | |
| 86 | type hostEntry struct { |
| 87 | ib inbounds.Inbound |