diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-30 10:02:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-30 10:03:09 +1300 |
commit | a017cdabef201be45e96379b58154163d68fc00f (patch) | |
tree | 608662393ad902a927acba90f9bf9571b12ada0f /src/org/traccar/protocol/Tk103ProtocolDecoder.java | |
parent | dd943e107a9680948747fb0ab2132cc57d027352 (diff) | |
download | trackermap-server-a017cdabef201be45e96379b58154163d68fc00f.tar.gz trackermap-server-a017cdabef201be45e96379b58154163d68fc00f.tar.bz2 trackermap-server-a017cdabef201be45e96379b58154163d68fc00f.zip |
Always pass remote address to identify method
Diffstat (limited to 'src/org/traccar/protocol/Tk103ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index e8d0d210d..322ec9747 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -103,7 +103,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { Parser parser = new Parser(PATTERN_BATTERY, sentence); if (parser.matches()) { - if (!identify(parser.next(), channel)) { + if (!identify(parser.next(), channel, remoteAddress)) { return null; } position.setDeviceId(getDeviceId()); @@ -129,7 +129,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { parser = new Parser(PATTERN_NETWORK, sentence); if (parser.matches()) { - if (!identify(parser.next(), channel)) { + if (!identify(parser.next(), channel, remoteAddress)) { return null; } position.setDeviceId(getDeviceId()); @@ -149,7 +149,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { return null; } - if (!identify(parser.next(), channel)) { + if (!identify(parser.next(), channel, remoteAddress)) { return null; } position.setDeviceId(getDeviceId()); |