new: parsing device name from intercepted mdns:md values

This commit is contained in:
evilsocket 2018-09-22 14:13:43 +02:00
commit 431215b053
2 changed files with 18 additions and 6 deletions

View file

@ -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)
}
}
}