misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-17 06:04:16 +01:00
commit eb5a72a44c
9 changed files with 234 additions and 220 deletions

View file

@ -23,9 +23,9 @@ func vIP(ip net.IP) string {
}
address := ip.String()
host, found := session.I.Targets.Targets[address]
host := session.I.Lan.Get(address)
if found == true {
if host != nil {
if host.Hostname != "" {
return host.Hostname
}