mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
new: parsing device name from intercepted mdns:md values
This commit is contained in:
parent
654585ff1f
commit
431215b053
2 changed files with 18 additions and 6 deletions
|
@ -95,12 +95,7 @@ func (s *Session) startNetMon() {
|
|||
}
|
||||
|
||||
if existing != nil && event.Meta != nil {
|
||||
for k, v := range event.Meta {
|
||||
if strings.HasSuffix(k, ":hostname") && existing.Hostname == "" {
|
||||
existing.Hostname = v
|
||||
}
|
||||
existing.Meta.Set(k, v)
|
||||
}
|
||||
existing.OnMeta(event.Meta)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue