mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
7f7e5a24f8
commit
c838abbe25
3 changed files with 8 additions and 34 deletions
|
@ -100,7 +100,7 @@ func (t *Endpoint) String() string {
|
|||
return fmt.Sprintf("%s : %s", t.IpAddress, t.HwAddress)
|
||||
} else if t.Hostname == "" {
|
||||
return fmt.Sprintf("%s : %s ( %s )", t.IpAddress, t.HwAddress, t.Vendor)
|
||||
} else {
|
||||
return fmt.Sprintf("%s : %s ( %s ) - "+core.BOLD+t.Hostname+core.RESET, t.IpAddress, t.HwAddress, t.Vendor)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s : %s ( %s ) - %s", t.IpAddress, t.HwAddress, t.Vendor, core.Bold(t.Hostname))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue