diff --git a/main.go b/main.go index 649aaf0..e9320c2 100644 --- a/main.go +++ b/main.go @@ -10,10 +10,10 @@ import ( "strings" "time" + "github.com/FrankSpierings/aquatone/parsers" "github.com/google/uuid" "github.com/michenriksen/aquatone/agents" "github.com/michenriksen/aquatone/core" - "github.com/michenriksen/aquatone/parsers" ) var ( diff --git a/parsers/nmap.go b/parsers/nmap.go index c6d3c08..0d97c97 100644 --- a/parsers/nmap.go +++ b/parsers/nmap.go @@ -69,13 +69,12 @@ func (p *NmapParser) hostToURLs(host nmap.Host) []string { for _, hostname := range host.Hostnames { urls = append(urls, core.HostAndPortToURL(hostname.Name, port.PortId, protocol)) } - } else { - for _, address := range host.Addresses { - if address.AddrType == "mac" { - continue - } - urls = append(urls, core.HostAndPortToURL(address.Addr, port.PortId, protocol)) + } + for _, address := range host.Addresses { + if address.AddrType == "mac" { + continue } + urls = append(urls, core.HostAndPortToURL(address.Addr, port.PortId, protocol)) } }