mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
fix: giving an alias precedence over hostname in events view.
This commit is contained in:
parent
7ae63ed409
commit
0c4b7f648e
1 changed files with 3 additions and 3 deletions
|
@ -68,10 +68,10 @@ func (d *Discovery) getRow(e *net.Endpoint) []string {
|
|||
name = e.Name()
|
||||
} else if e == d.Session.Gateway {
|
||||
name = "gateway"
|
||||
} else if e.Hostname != "" {
|
||||
name = core.Yellow(e.Hostname)
|
||||
} else if e.Alias != "" {
|
||||
name = core.Green(e.Alias)
|
||||
name = core.Yellow(e.Alias)
|
||||
} else if e.Hostname != "" {
|
||||
name = core.Green(e.Hostname)
|
||||
}
|
||||
|
||||
var traffic *packets.Traffic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue