mirror of
https://github.com/craigerl/aprsd.git
synced 2025-09-03 21:57:47 -04:00
Ignore callsign case while processing packets
This patch fixes an issue where aprsd was deciding if it was supposed to process a packet destined for itself or not. It was making a case sensitive comparison. This patch makes that comparison case insensitive for the callsign itself.
This commit is contained in:
parent
78329f79f4
commit
44696fbc56
@ -115,7 +115,7 @@ class APRSDProcessPacketThread(APRSDThread):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Only ack messages that were sent directly to us
|
# Only ack messages that were sent directly to us
|
||||||
if tocall == self.config["aprsd"]["callsign"]:
|
if (tocall.lower() == self.config["aprsd"]["callsign"].lower()):
|
||||||
stats.APRSDStats().msgs_rx_inc()
|
stats.APRSDStats().msgs_rx_inc()
|
||||||
# let any threads do their thing, then ack
|
# let any threads do their thing, then ack
|
||||||
# send an ack last
|
# send an ack last
|
||||||
|
Loading…
x
Reference in New Issue
Block a user