1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-07 17:00:24 +08:00

feat(config): add inner routing mark y

This commit is contained in:
源文雨
2024-08-17 21:17:04 +08:00
parent 9871bde9f1
commit 1ba17fca54
3 changed files with 6 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ func (wg *WG) init(srcport, dstport uint16) {
}
for _, p := range wg.c.Peers {
for _, ip := range p.AllowedIPs {
if len(ip) == 0 || ip[0] == 'x' {
if len(ip) == 0 || ip[0] == 'x' || ip[0] == 'y' {
continue
}
ipnet, _, err := net.ParseCIDR(ip)