From 90f9015ab214f7f5f2d2b2b09078f7888e2039f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 25 Mar 2023 15:43:24 -0500 Subject: correctly shows the DNS status Signed-off-by: Jeff Carr --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index e03defd..92fb100 100644 --- a/main.go +++ b/main.go @@ -48,9 +48,10 @@ func main() { Poll for changes to the networking settings */ func checkNetworkChanges() { - var ttl int = 3 + var ttl int = 0 + var ttlsleep int = 5 for { - sleep(1) + sleep(ttlsleep) ttl -= 1 if (ttl < 0) { if (runtime.GOOS == "linux") { -- cgit v1.2.3