lighthouse: Recompute relays for me when relay.am_relay changes (#1917)

This commit is contained in:
Nate Brown authored and GitHub committed 2026-10-07 14:06:27 -05:00
1 parent 5f26c1a7e5
commit 94be454f4f
2 files changed
+23 -1

No files matched your search

+2 -1
View File
@@ -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()