use go-cmd/cmd
This commit is contained in:
parent
a4659ec595
commit
1082f0b7f9
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue