We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719cc7a commit 0834e17Copy full SHA for 0834e17
interface_rajant/scripts/rajant_query.py
@@ -59,6 +59,10 @@ def line_parser(line_bytes):
59
if line_str.replace(" ", "")[:4] == "mac:":
60
separator = line_str.find(":") + 2
61
mac_str = line_str[separator:]
62
+ # FIXME The .replace that happens before can modify the MAC of the client.
63
+ # This is an ugly fix. The right way to solve this problem is to use the proto message
64
+ # (or implement a more resilient parser)
65
+ mac_str = mac_str.replace(":", "{")
66
mac_bytes = bytes(mac_str, 'raw_unicode_escape')
67
mac_decoded = ":".join(["%02x" % c for c in mac_bytes[1:-2]])
68
line_str = line_str[:separator] + mac_decoded + "\n"
0 commit comments