Added warning log entry for out of range port on packet

This commit is contained in:
Paul Gregoire 2015-11-06 08:43:58 -05:00
parent 3f9bf0b17c
commit 39466ac70c

View File

@ -210,6 +210,7 @@ class Connector
packet.getAddress(), packet.getPort())); packet.getAddress(), packet.getPort()));
if (packet.getPort() < 0) if (packet.getPort() < 0)
{ {
logger.warning("Out of range packet port, resetting to 0");
// force a minimum port of 0 to prevent out of range errors // force a minimum port of 0 to prevent out of range errors
packet.setPort(0); packet.setPort(0);
} }