mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
Re-run gofmt -s after modifications
This commit is contained in:
parent
e91d0cb63c
commit
d80fef3ef9
11 changed files with 30 additions and 30 deletions
|
@ -162,10 +162,10 @@ func (t *Endpoint) OnMeta(meta map[string]string) {
|
|||
for k, v := range meta {
|
||||
// simple heuristics to get the longest candidate name
|
||||
if len(v) > len(host) {
|
||||
if strings.HasSuffix(k, ":hostname"){
|
||||
if strings.HasSuffix(k, ":hostname") {
|
||||
host = v
|
||||
}
|
||||
if k == "mdns:md"{
|
||||
if k == "mdns:md" {
|
||||
host = v
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue