fix(publicip): respect PUBLICIP_ENABLED
This commit is contained in:
@@ -114,6 +114,11 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !*l.settings.Enabled {
|
||||||
|
singleRunResult <- nil
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
result, err := l.fetcher.FetchInfo(singleRunCtx, netip.Addr{})
|
result, err := l.fetcher.FetchInfo(singleRunCtx, netip.Addr{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = fmt.Errorf("fetching information: %w", err)
|
err = fmt.Errorf("fetching information: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user