Added setting of packet port to 0 to prevent out-of-range error.
This commit is contained in:
parent
6c99040496
commit
d756d7d72a
@ -207,6 +207,13 @@ class Connector
|
||||
return;
|
||||
|
||||
logger.finest("received datagram");
|
||||
logger.finest(String.format("packet - addr: %s port: %d",
|
||||
packet.getAddress(), packet.getPort()));
|
||||
if (packet.getPort() < 0)
|
||||
{
|
||||
// force a minimum port of 0 to prevent out of range errors
|
||||
packet.setPort(0);
|
||||
}
|
||||
|
||||
RawMessage rawMessage
|
||||
= new RawMessage(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user