chore: using uint16 for ports in Metadata
This commit is contained in:
@ -436,12 +436,10 @@ func NewAddress(metadata *C.Metadata) Address {
|
||||
copy(addr[1:], metadata.Host)
|
||||
}
|
||||
|
||||
port, _ := strconv.ParseUint(metadata.DstPort, 10, 16)
|
||||
|
||||
return Address{
|
||||
TYPE: addrType,
|
||||
ADDR: addr,
|
||||
PORT: uint16(port),
|
||||
PORT: metadata.DstPort,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user