mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-28 01:06:50 +09:00
mapper: refresh self when approved routes change
Updates #3502, #3518
(cherry picked from commit 48046dc9c5)
This commit is contained in:
1 parent
a4e56d7bf1
commit
929e3337f4
8 files changed
+279
-25
No files matched your search
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user