summaryrefslogtreecommitdiff
path: root/net.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-28 09:43:45 -0600
committerJeff Carr <[email protected]>2023-12-28 09:43:45 -0600
commit6fa6d6dfc9e5a88e7dff2ed3c148b3b4271f566c (patch)
treef08edaac07ddf1a2e8a7401ef32c53707bdf5537 /net.go
parent73b0cee93320bb5b572881cd1a5ba9d878a4ba3a (diff)
Detect that a VPN is needed
IPv6() returns true if it's working display duration a 'DNS Lookup Status' window actual dig results display status and failure counters count lookup failures and successes add TCP dns lookup logic to test if dns is working at all add DNS over HTTPS cloudflare new & update kind of working holy shit, go.wit.com finally works with git mod tidy working, but cloudflare api stuff is broken AAAA '(none)' logic detection is better cloudflare control panel display the working real AAAA addresses Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'net.go')
-rw-r--r--net.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/net.go b/net.go
index 487486e..10b909a 100644
--- a/net.go
+++ b/net.go
@@ -97,7 +97,11 @@ func checkInterface(i net.Interface) {
}
}
-func realAAAA() []string {
+/*
+ These are the real IP address you have been
+ given from DHCP
+*/
+func dhcpAAAA() []string {
var aaaa []string
for s, t := range me.ipmap {