aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-03-23 21:42:43 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-03-23 21:42:43 +1300
commitac2f547aa7799e471a8f4a71812fe8efdf5505c5 (patch)
tree163b16ca93714fb18be5c432324433177bff8f41 /src/org/traccar/BasePipelineFactory.java
parent23086613c6e88aa768afa795340fe9ac0ac3a7db (diff)
downloadtrackermap-server-ac2f547aa7799e471a8f4a71812fe8efdf5505c5.tar.gz
trackermap-server-ac2f547aa7799e471a8f4a71812fe8efdf5505c5.tar.bz2
trackermap-server-ac2f547aa7799e471a8f4a71812fe8efdf5505c5.zip
Fix Norad decoder (fix #610)
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 9d2ab5071..e0c88ff90 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -15,6 +15,7 @@
*/
package org.traccar;
+import java.net.InetAddress;
import java.net.InetSocketAddress;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
@@ -66,6 +67,12 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
msg.append("[").append(((InetSocketAddress) e.getChannel().getLocalAddress()).getPort());
msg.append((e instanceof DownstreamMessageEvent) ? " -> " : " <- ");
+
+ event.getRemoteAddress().hashCode();
+ //InetSocketAddress a = (InetSocketAddress) event.getRemoteAddress();
+ //InetAddress b = a.getAddress();
+ //String s = b.getHostAddress();
+
msg.append(((InetSocketAddress) event.getRemoteAddress()).getAddress().getHostAddress()).append("]");
// Append hex message