psss on blank addresse

This commit is contained in:
KF7EEL 2021-03-05 07:16:28 -08:00 committed by GitHub
parent c18ba0ec69
commit 30eb140b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,9 @@ def aprs_filter(packet):
#print(aprslib.parse(packet)) #print(aprslib.parse(packet))
recipient = re.sub('-.*','', aprslib.parse(packet)['addresse']) recipient = re.sub('-.*','', aprslib.parse(packet)['addresse'])
recipient_ssid = re.sub('.*-','', aprslib.parse(packet)['addresse']) recipient_ssid = re.sub('.*-','', aprslib.parse(packet)['addresse'])
if recipient == '':
pass
elif:
for i in user_settings.items(): for i in user_settings.items():
ssid = i[1][1]['ssid'] ssid = i[1][1]['ssid']
if i[1][1]['ssid'] == '': if i[1][1]['ssid'] == '':
@ -51,6 +53,7 @@ def aprs_filter(packet):
AIS.sendall(aprslib.parse(packet)['addresse'] + '>APHBL3,TCPIP*:' + ':' + aprslib.parse(packet)['from'].ljust(9) +':ack'+aprslib.parse(packet)['msgNo']) AIS.sendall(aprslib.parse(packet)['addresse'] + '>APHBL3,TCPIP*:' + ':' + aprslib.parse(packet)['from'].ljust(9) +':ack'+aprslib.parse(packet)['msgNo'])
print('Send ACK') print('Send ACK')
print(aprslib.parse(packet)['addresse'] + '>APHBL3,TCPIP*:' + ':' + aprslib.parse(packet)['from'].ljust(9) +':ack'+aprslib.parse(packet)['msgNo']) print(aprslib.parse(packet)['addresse'] + '>APHBL3,TCPIP*:' + ':' + aprslib.parse(packet)['from'].ljust(9) +':ack'+aprslib.parse(packet)['msgNo'])
## else: ## else:
## print(aprslib.parse(packet)['from']) ## print(aprslib.parse(packet)['from'])