summaryrefslogtreecommitdiff
path: root/digStatusWindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'digStatusWindow.go')
-rw-r--r--digStatusWindow.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/digStatusWindow.go b/digStatusWindow.go
index 5fc375a..04fb1b9 100644
--- a/digStatusWindow.go
+++ b/digStatusWindow.go
@@ -17,6 +17,7 @@ import (
"fmt"
"os"
"reflect"
+ "strings"
"time"
"go.wit.com/gui"
@@ -252,13 +253,13 @@ func (ds *digStatus) updateDnsStatus() {
ds.setIPv6status("Need VPN")
}
- r := shell.Output("", []string{"dig", "+noall", "+answer", "www.wit.com", "A"})
- log.Log(DNS, "makeDnsStatusGrid() dig", r.Stdout())
- me.digStatus.set(ds.DnsDigUDP, r.Stdout())
+ r := shell.Run([]string{"dig", "+noall", "+answer", "www.wit.com", "A"})
+ log.Log(DNS, "makeDnsStatusGrid() dig", r.Stdout)
+ me.digStatus.set(ds.DnsDigUDP, strings.Join(r.Stdout, "\n"))
- r = shell.Output("", []string{"dig", "+noall", "+answer", "www.wit.com", "AAAA"})
- log.Log(DNS, "makeDnsStatusGrid() dig", r.Stdout())
- me.digStatus.set(ds.DnsDigTCP, r.Stdout())
+ r = shell.Run([]string{"dig", "+noall", "+answer", "www.wit.com", "AAAA"})
+ log.Log(DNS, "makeDnsStatusGrid() dig", r.Stdout)
+ me.digStatus.set(ds.DnsDigTCP, strings.Join(r.Stdout, "\n"))
/*
g2.NewButton("dig +trace", func () {