summaryrefslogtreecommitdiff
path: root/digStatus.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-01 08:49:16 -0600
committerJeff Carr <[email protected]>2024-02-01 08:49:16 -0600
commita26018c86d16e2e70459b4a10e00b0cf024aaba8 (patch)
treeb86d55f3234a9e4cf7abe5422dd7846b89341655 /digStatus.go
parent78927ede5d11c86c27de7eab91d67941c1444d18 (diff)
works within 30 seconds
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'digStatus.go')
-rw-r--r--digStatus.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/digStatus.go b/digStatus.go
index 15912ea..5722f47 100644
--- a/digStatus.go
+++ b/digStatus.go
@@ -336,3 +336,22 @@ func (ds *digStatus) Hide() {
}
me.digStatus.hidden = true
}
+
+func digLoop() {
+ me.digStatus.Update()
+
+ if me.digStatus.Ready() {
+ current := me.statusIPv6.String()
+ if me.digStatus.IPv6() {
+ if current != "WORKING" {
+ log.Log(CHANGE, "IPv6 resolution is WORKING")
+ me.statusIPv6.SetText("WORKING")
+ }
+ } else {
+ if current != "Need VPN" {
+ log.Log(CHANGE, "IPv6 resolution seems to have broken")
+ me.statusIPv6.SetText("Need VPN")
+ }
+ }
+ }
+}