mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
go vet fixes
This commit is contained in:
parent
8acf81f61d
commit
05b8e3065e
6 changed files with 32 additions and 28 deletions
|
@ -13,7 +13,7 @@ func grabChaos(addr string, q string) string {
|
|||
c := new(dns.Client)
|
||||
m := new(dns.Msg)
|
||||
m.Question = make([]dns.Question, 1)
|
||||
m.Question[0] = dns.Question{q, dns.TypeTXT, dns.ClassCHAOS}
|
||||
m.Question[0] = dns.Question{Name: q, Qtype: dns.TypeTXT, Qclass: dns.ClassCHAOS}
|
||||
if in, _, _ := c.Exchange(m, addr); in != nil && len(in.Answer) > 0 {
|
||||
s := in.Answer[0].String()
|
||||
if match := chaosParser.FindStringSubmatch(s); len(match) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue