summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-25 15:43:24 -0500
committerJeff Carr <[email protected]>2023-03-25 15:43:24 -0500
commit90f9015ab214f7f5f2d2b2b09078f7888e2039f2 (patch)
tree16e1fa064fc06d6f561d7d94badd372cad75c5aa /main.go
parent058f14212775c80e97f4391f6fa6edea96981c73 (diff)
correctly shows the DNS status
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
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") {