This commit is contained in:
crusader
2018-09-18 02:32:36 +09:00
parent 34f3f59837
commit d9dea68ea6
2 changed files with 9 additions and 6 deletions

View File

@@ -735,15 +735,15 @@ func (ds *ofDiscoverySession) addtionalServiceMDNS(service *omd.Service, meta ma
switch portNumber {
case 515:
if "printer" == service.Key {
_h := service.Port.Host
if "printer" == service.Name || "printer" == service.Key {
_h, _ := ds.findHost(service.Port.Host)
_h.HostType = "PRINTER"
_h.Name = service.Name
ds.delegate(_h)
}
case 9100:
if "pdl-datastream" == service.Key {
_h := service.Port.Host
if "pdl-datastream" == service.Name || "pdl-datastream" == service.Key {
_h, _ := ds.findHost(service.Port.Host)
_h.HostType = "PRINTER"
_h.Name = service.Name
ds.delegate(_h)