diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 02:48:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 02:48:46 -0600 |
| commit | d2fb88cd584b8e7e60cb6315d9fb8d0d6ceac22f (patch) | |
| tree | def211e264c2c4f3de24ba50a1212d53c8a8a4a5 /gui.go | |
| parent | 01eca8fc107e287432e7f49752ad3c0932e2562b (diff) | |
start the series of fix() checks
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -209,6 +209,23 @@ func mainWindow(title string) { // This is where you figure out what to do next to fix the problems gr.NewButton("fix", func () { + if ! me.status.Ready() { + log.Warn("The IPv6 Control Panel is not Ready() yet") + return + } + 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 + } + 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") + return + } log.Warn("FIGURE OUT WHAT TO DO HERE") }) |
