From d2fb88cd584b8e7e60cb6315d9fb8d0d6ceac22f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 02:48:46 -0600 Subject: start the series of fix() checks Signed-off-by: Jeff Carr --- gui.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gui.go') diff --git a/gui.go b/gui.go index 1c66100..40f75b6 100644 --- a/gui.go +++ b/gui.go @@ -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") }) -- cgit v1.2.3