]> www.average.org Git - loctrkd.git/commitdiff
watch: fix check for proto handling
authorEugene Crosser <crosser@average.org>
Mon, 11 Jul 2022 22:44:15 +0000 (00:44 +0200)
committerEugene Crosser <crosser@average.org>
Thu, 14 Jul 2022 20:39:57 +0000 (22:39 +0200)
loctrkd/watch.py

index 738cfe230be94dfb415a6c40b21045e8e1583960..b2b5c063f25ccc6e8eebf0e6c2044afd0f18ed40 100644 (file)
@@ -43,7 +43,7 @@ def runserver(conf: ConfigParser) -> None:
             zmsg = Bcast(zsub.recv())
             print("I" if zmsg.is_incoming else "O", zmsg.proto, zmsg.imei)
             for pmod in pmods:
-                if pmod.proto_handled(zmsg.proto.startswith):
+                if pmod.proto_handled(zmsg.proto):
                     msg = pmod.parse_message(zmsg.packet, zmsg.is_incoming)
                     print(msg)
     except KeyboardInterrupt: