blob: 40179c53626b73d8d9f943f676f9a3452c120103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// 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.statusOS.ValidHostname() {
log.Warn("Your hostname is VALID:", me.statusOS.GetHostname())
} else {
log.Warn("You must first fix your hostname:", me.statusOS.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")
fixIPv6dns()
return false
}
log.Warn("YOU SHOULD BE IN IPv6 BLISS")
return true
}
func fixIPv6dns() {
log.Warn("What are my IPv6 addresses?")
for _, aaaa := range me.statusOS.GetIPv6os() {
log.Warn("FOUND AAAA ip", aaaa)
}
log.Warn("What are the AAAA resource records in DNS?")
for _, aaaa := range me.status.GetIPv6dns() {
log.Warn("FOUND AAAA ip", aaaa)
}
}
|