mapper: refresh self when approved routes change

Updates #3502, #3518

(cherry picked from commit 48046dc9c5)
This commit is contained in:
Kristoffer Dalby committed 2026-10-13 14:35:52 +02:00
1 parent a4e56d7bf1
commit 929e3337f4
8 files changed
+279 -25

No files matched your search

+5
View File
@@ -1692,6 +1692,11 @@ func TestEnablingExitRoutes(t *testing.T) {
assert.Contains(c, peerStatus.AllowedIPs.AsSlice(), tsaddr.AllIPv6())
}
}
// The approved node must learn its own routes on its live
// session, not only after reconnecting (issue #3502).
assert.True(c, status.Self.ExitNodeOption,
"%s should offer itself as exit node", client.Hostname())
}
}, integrationutil.ScaledTimeout(10*time.Second), integrationutil.SlowPoll, "clients should see new routes")
}