summaryrefslogtreecommitdiff
path: root/fix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 05:24:11 -0600
committerJeff Carr <[email protected]>2024-01-06 05:24:11 -0600
commit3457aefa86ccc9bc6c4eda059e48ebcb8830b410 (patch)
tree525dca4d9ec74d26282521148cd4918d85081e9b /fix.go
parentd2fb88cd584b8e7e60cb6315d9fb8d0d6ceac22f (diff)
add LinuxStatus()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'fix.go')
-rw-r--r--fix.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/fix.go b/fix.go
new file mode 100644
index 0000000..6bc0896
--- /dev/null
+++ b/fix.go
@@ -0,0 +1,44 @@
+// This creates a simple hello world window
+package main
+
+import (
+ "go.wit.com/log"
+)
+
+func fix() bool {
+ log.Warn("")
+ if ! me.status.Ready() {
+ log.Warn("The IPv6 Control Panel is not Ready() yet")
+ return false
+ }
+ if me.status.ValidHostname() {
+ log.Warn("Your hostname is VALID:", me.status.GetHostname())
+ } else {
+ log.Warn("You must first fix your hostname:", me.status.GetHostname())
+ return false
+ }
+ if me.digStatus.IPv4() {
+ log.Warn("IPv4 addresses are resolving")
+ } else {
+ log.Warn("You must first figure out why you can't look up IPv4 addresses")
+ log.Warn("Are you on the internet at all?")
+ return false
+ }
+ if me.digStatus.IPv6() {
+ log.Warn("IPv6 addresses are resolving")
+ } else {
+ log.Warn("You must first figure out why you can't look up IPv6 addresses")
+ return false
+ }
+ if ! me.status.IPv4() {
+ log.Warn("You do not have real IPv4 addresses. Nothing to fix here")
+ }
+ if ! me.status.IPv6() {
+ log.Warn("IPv6 DNS is broken. Check what is broken here")
+ log.Warn("What are my IPv6 addresses?")
+ log.Warn("What are the AAAA resource records in DNS?")
+ return false
+ }
+ log.Warn("YOU SHOULD BE IN IPv6 BLISS")
+ return true
+}