diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 11:18:34 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-17 11:18:34 +1300 |
commit | 5656abb1fd722e3d1014abcd51f1b09e39f50589 (patch) | |
tree | b9c8704d3de17fe417c89d9f98fa3f9a167dc33f /src | |
parent | 91d6491b438ecddbe63a49de26a76cd8f7309650 (diff) | |
download | trackermap-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.tar.gz trackermap-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.tar.bz2 trackermap-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.zip |
Handle missing remote address
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 14041a63a..6a1d3034f 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -69,10 +69,9 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { } else { msg.append(" < "); } + + msg.append(((InetSocketAddress) event.getRemoteAddress()).getHostString()).append("]"); - msg.append(((InetSocketAddress) event.getRemoteAddress()).getAddress().getHostAddress()).append("]"); - - // Append hex message if (event.getMessage() instanceof ChannelBuffer) { msg.append(" HEX: "); msg.append(ChannelBuffers.hexDump((ChannelBuffer) event.getMessage())); |