diff options
| author | Jeff Carr <[email protected]> | 2023-04-13 07:49:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-13 07:49:13 -0500 |
| commit | 5d7004ad924c602234e67767b285a68fe9a9145f (patch) | |
| tree | f578376f0165809fed84c3b11b6b4b29864d92c5 /gui.go | |
| parent | 9975aefe1e4d2a8828185f75344f0e776ecdeaeb (diff) | |
getting close to nsupdate
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -38,7 +38,7 @@ func addDNSTab(title string) { g2.NewButton("Load 'gocui'", func () { // this set the xterm and mate-terminal window title. maybe works generally? fmt.Println("\033]0;" + title + "blah \007") - gui.LoadPlugin("gocui") + myGui.LoadToolkit("gocui") }) g2.NewButton("Network Interfaces", func () { @@ -59,6 +59,11 @@ func addDNSTab(title string) { } }) + g2.NewButton("Update DNS", func () { + log("updateDNS()") + updateDNS() + }) + g2.NewButton("checkDNS()", func () { checkDNS() }) @@ -139,12 +144,8 @@ func nsupdateGroup(w *gui.Node) { grid.NewLabel("DNS Status =") me.DnsStatus = grid.NewLabel("unknown") - g.NewButton("Update DNS", func () { - log("updateDNS()") - updateDNS() - me.tab.Margin() - me.tab.Pad() - grid.Pad() + g.NewButton("go-nsupdate", func () { + nsupdate() }) } @@ -194,6 +195,7 @@ func updateDNS() { } else { me.DnsStatus.SetText("BROKEN") log("Need to run go-nsupdate here") + nsupdate() } user, _ := user.Current() |
