ing
This commit is contained in:
parent
a9f2de065e
commit
cb1265d4e6
|
@ -24,9 +24,13 @@ var (
|
||||||
"urn:schemas-upnp-org:device:InternetGatewayDevice:2": omm.MetaHostTypeEnumRouter,
|
"urn:schemas-upnp-org:device:InternetGatewayDevice:2": omm.MetaHostTypeEnumRouter,
|
||||||
"urn:schemas-upnp-org:device:WLANAccessPointDevice:1": omm.MetaHostTypeEnumWLANAccessPoint,
|
"urn:schemas-upnp-org:device:WLANAccessPointDevice:1": omm.MetaHostTypeEnumWLANAccessPoint,
|
||||||
"urn:schemas-upnp-org:device:MediaServer:1": omm.MetaHostTypeEnumMediaServer,
|
"urn:schemas-upnp-org:device:MediaServer:1": omm.MetaHostTypeEnumMediaServer,
|
||||||
|
"urn:schemas-upnp-org:device:MediaRenderer:1": omm.MetaHostTypeEnumMediaServer,
|
||||||
"urn:schemas-upnp-org:device:MediaServer:2": omm.MetaHostTypeEnumMediaServer,
|
"urn:schemas-upnp-org:device:MediaServer:2": omm.MetaHostTypeEnumMediaServer,
|
||||||
|
"urn:schemas-upnp-org:device:MediaRenderer:2": omm.MetaHostTypeEnumMediaServer,
|
||||||
"urn:schemas-upnp-org:device:MediaServer:3": omm.MetaHostTypeEnumMediaServer,
|
"urn:schemas-upnp-org:device:MediaServer:3": omm.MetaHostTypeEnumMediaServer,
|
||||||
|
"urn:schemas-upnp-org:device:MediaRenderer:3": omm.MetaHostTypeEnumMediaServer,
|
||||||
"urn:schemas-upnp-org:device:MediaServer:4": omm.MetaHostTypeEnumMediaServer,
|
"urn:schemas-upnp-org:device:MediaServer:4": omm.MetaHostTypeEnumMediaServer,
|
||||||
|
"urn:schemas-upnp-org:device:MediaRenderer:4": omm.MetaHostTypeEnumMediaServer,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,10 @@ import (
|
||||||
"git.loafle.net/overflow_scanner/probe/internal/pcap"
|
"git.loafle.net/overflow_scanner/probe/internal/pcap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
MetaSeperator = "|||"
|
||||||
|
)
|
||||||
|
|
||||||
type DiscoverySession interface {
|
type DiscoverySession interface {
|
||||||
InitWithRequest(request types.DiscoveryRequest) error
|
InitWithRequest(request types.DiscoveryRequest) error
|
||||||
|
|
||||||
|
@ -869,10 +873,15 @@ LOOP:
|
||||||
modified = true
|
modified = true
|
||||||
continue LOOP
|
continue LOOP
|
||||||
}
|
}
|
||||||
if v == _v {
|
|
||||||
continue LOOP
|
_metas := strings.Split(_v, MetaSeperator)
|
||||||
|
for _, _meta := range _metas {
|
||||||
|
if _meta == v {
|
||||||
|
continue LOOP
|
||||||
|
}
|
||||||
}
|
}
|
||||||
oriMeta[k] = fmt.Sprintf("%s|||%s", _v, v)
|
|
||||||
|
oriMeta[k] = fmt.Sprintf("%s%s%s", _v, MetaSeperator, v)
|
||||||
modified = true
|
modified = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user