diff options
| author | Jeff Carr <[email protected]> | 2023-03-25 15:43:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-25 15:43:24 -0500 |
| commit | 90f9015ab214f7f5f2d2b2b09078f7888e2039f2 (patch) | |
| tree | 16e1fa064fc06d6f561d7d94badd372cad75c5aa /main.go | |
| parent | 058f14212775c80e97f4391f6fa6edea96981c73 (diff) | |
correctly shows the DNS status
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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") { |
