mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:46:52 +01:00
lighthouse: Recompute relays for me when relay.am_relay changes (#1917)
This commit is contained in:
1 parent
5f26c1a7e5
commit
94be454f4f
2 files changed
+23
-1
No files matched your search
+2
-1
@@ -359,7 +359,8 @@ func (lh *LightHouse) reload(c *config.C, initial bool) error {
|
||||
}
|
||||
}
|
||||
|
||||
if initial || c.HasChanged("relay.relays") {
|
||||
// am_relay decides whether relay.relays applies to us at all
|
||||
if initial || c.HasChanged("relay.relays") || c.HasChanged("relay.am_relay") {
|
||||
var before []netip.Addr
|
||||
if !initial {
|
||||
before = lh.GetRelaysForMe()
|
||||
|
||||
Reference in new issue
Block a user