mirror of
https://github.com/pdxlocations/contact.git
synced 2026-03-28 17:12:35 +01:00
restore 3.9 compatibility
This commit is contained in:
@@ -182,15 +182,12 @@ def parse_protobuf(packet: dict) -> Union[str, dict]:
|
||||
return payload
|
||||
|
||||
# These portnumbers carry information visible elswhere in the app, so we just note them in the logs
|
||||
match portnum:
|
||||
case "TEXT_MESSAGE_APP":
|
||||
if portnum == "TEXT_MESSAGE_APP":
|
||||
return "✉️"
|
||||
case "NODEINFO_APP":
|
||||
elif portnum == "NODEINFO_APP":
|
||||
return "Name identification payload"
|
||||
case "TRACEROUTE_APP":
|
||||
elif portnum == "TRACEROUTE_APP":
|
||||
return "Traceroute payload"
|
||||
case _:
|
||||
pass
|
||||
|
||||
handler = protocols.get(portnums_pb2.PortNum.Value(portnum)) if portnum is not None else None
|
||||
if handler is not None and handler.protobufFactory is not None:
|
||||
|
||||
Reference in New Issue
Block a user