mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: giving an alias precedence over hostname in events view.
This commit is contained in:
parent
9f798ba67f
commit
7ae63ed409
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ func (s EventsStream) viewEndpointEvent(e session.Event) {
|
|||
vend = fmt.Sprintf(" (%s)", t.Vendor)
|
||||
}
|
||||
|
||||
if t.Hostname != "" {
|
||||
if t.Alias != "" {
|
||||
name = fmt.Sprintf(" (%s)", t.Hostname)
|
||||
} else if t.Alias != "" {
|
||||
} else if t.Hostname != "" {
|
||||
name = fmt.Sprintf(" (%s)", t.Alias)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue