fix(publicip): respect PUBLICIP_ENABLED

This commit is contained in:
Quentin McGaw
2025-10-23 19:49:21 +00:00
parent 4adeec8223
commit 83fc91d3c6

View File

@@ -114,6 +114,11 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
continue
}
if !*l.settings.Enabled {
singleRunResult <- nil
continue
}
result, err := l.fetcher.FetchInfo(singleRunCtx, netip.Addr{})
if err != nil {
err = fmt.Errorf("fetching information: %w", err)