mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
e895dc6ab2
commit
eb5a72a44c
9 changed files with 234 additions and 220 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue