mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
fix: prioritize longer and more explicit host names
This commit is contained in:
parent
5969acd55d
commit
fabf3bb8e9
1 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,8 @@ func (t *Endpoint) OnMeta(meta map[string]string) {
|
||||||
t.Meta.Set(k, v)
|
t.Meta.Set(k, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
if t.Hostname == "" {
|
// prioritize longer and more explicit host names
|
||||||
|
if len(host) > len(t.Hostname) {
|
||||||
t.Hostname = host
|
t.Hostname = host
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue