mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: grabbing meta info from mDNS TXT records
This commit is contained in:
parent
3789b21ba1
commit
798df7e32f
4 changed files with 51 additions and 8 deletions
|
@ -94,8 +94,15 @@ func (s *Session) startNetMon() {
|
|||
existing, _ = s.Lan.Get(mac)
|
||||
}
|
||||
|
||||
if existing != nil && existing.Hostname == "" && event.Hostname != "" {
|
||||
existing.Hostname = event.Hostname
|
||||
if existing != nil {
|
||||
if existing.Hostname == "" && event.Hostname != "" {
|
||||
existing.Hostname = event.Hostname
|
||||
}
|
||||
if event.Meta != nil {
|
||||
for k, v := range event.Meta {
|
||||
existing.Meta.Set(k, v)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue