ing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user