aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 11:18:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 11:18:34 +1300
commit5656abb1fd722e3d1014abcd51f1b09e39f50589 (patch)
treeb9c8704d3de17fe417c89d9f98fa3f9a167dc33f /src
parent91d6491b438ecddbe63a49de26a76cd8f7309650 (diff)
downloadtraccar-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.tar.gz
traccar-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.tar.bz2
traccar-server-5656abb1fd722e3d1014abcd51f1b09e39f50589.zip
Handle missing remote address
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BasePipelineFactory.java5
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()));