From 83fc91d3c6ab8687c1e6a347e02dfe34b636e60e Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 23 Oct 2025 19:49:21 +0000 Subject: [PATCH] fix(publicip): respect PUBLICIP_ENABLED --- internal/publicip/loop.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/publicip/loop.go b/internal/publicip/loop.go index 099224e9..6533aa25 100644 --- a/internal/publicip/loop.go +++ b/internal/publicip/loop.go @@ -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)