misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-09-09 13:33:53 +03:00
parent 549fdc45af
commit b81d26aa93
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -38,7 +38,7 @@ func MDNSGetMeta(pkt gopacket.Packet) map[string]string {
for _, raw := range answer.TXTs {
if value := string(raw); strings.Contains(value, "=") {
parts := strings.SplitN(value, "=", 2)
meta[core.Trim(parts[0])] = core.Trim(parts[1])
meta["mdns:"+core.Trim(parts[0])] = core.Trim(parts[1])
}
}
}