ing
This commit is contained in:
parent
212d3feb38
commit
5b5a780fcc
|
@ -17,6 +17,7 @@ import (
|
|||
ounc "git.loafle.net/overflow/util-go/net/cidr"
|
||||
"git.loafle.net/overflow_scanner/probe/discovery/types"
|
||||
"git.loafle.net/overflow_scanner/probe/internal/pcap"
|
||||
"github.com/google/gopacket/layers"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -650,6 +651,14 @@ func (ds *ofDiscoverySession) findPort(port *omd.Port) (p *omd.Port, modified bo
|
|||
modified = true
|
||||
}
|
||||
|
||||
if "" == p.DefaultService {
|
||||
portNumber, _ := ouej.NumberToInt(port.PortNumber)
|
||||
if dName, ok := layers.TCPPortNames[layers.TCPPort(portNumber)]; ok {
|
||||
p.DefaultService = dName
|
||||
modified = true
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user