1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-10 19:50:30 +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

@@ -89,7 +89,8 @@ func (m *Me) AddPeer(cfg *PeerConfig) (l *Link) {
continue
}
noroute := ipnet[0] == 'x'
if noroute {
innerroute := ipnet[0] == 'y'
if noroute || innerroute {
ipnet = ipnet[1:]
if len(ipnet) == 0 {
continue