Fix: codeql alerts
This commit is contained in:
@ -39,7 +39,7 @@ func (p *Port) ShouldResolveIP() bool {
|
||||
}
|
||||
|
||||
func NewPort(port string, adapter string, isSource bool) (*Port, error) {
|
||||
_, err := strconv.Atoi(port)
|
||||
_, err := strconv.ParseUint(port, 10, 16)
|
||||
if err != nil {
|
||||
return nil, errPayload
|
||||
}
|
||||
|
Reference in New Issue
Block a user