diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 6677c365..433a0b94 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -124,7 +124,7 @@ func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scrip } if p.jsHook == "" && jsToInject != "" { - if strings.HasPrefix(jsToInject, "", jsToInject) } p.jsHook = fmt.Sprintf("%s", jsToInject) diff --git a/modules/net_sniff_mdns.go b/modules/net_sniff_mdns.go index fa13fa9d..bda764de 100644 --- a/modules/net_sniff_mdns.go +++ b/modules/net_sniff_mdns.go @@ -35,7 +35,7 @@ func mdnsParser(ip *layers.IPv4, pkt gopacket.Packet, udp *layers.UDP) bool { for _, answer := range answers { if answer.Type == layers.DNSTypeA || answer.Type == layers.DNSTypeAAAA { hostname := string(answer.Name) - if _, found := m[hostname]; found == false { + if _, found := m[hostname]; !found { m[hostname] = make([]string, 0) } m[hostname] = append(m[hostname], answer.IP.String())