Scrub more vacuum keys (#1328)

This commit is contained in:
Teemu R. 2024-12-01 18:07:05 +01:00 committed by GitHub
parent 9966c6094a
commit 74b59d7f98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,10 @@ def scrub(res):
"encrypt_info", "encrypt_info",
"local_ip", "local_ip",
"username", "username",
# vacuum
"board_sn",
"custom_sn",
"location",
] ]
for k, v in res.items(): for k, v in res.items():
@ -153,7 +157,13 @@ def scrub(res):
v = base64.b64encode(b"#MASKED_SSID#").decode() v = base64.b64encode(b"#MASKED_SSID#").decode()
elif k in ["nickname"]: elif k in ["nickname"]:
v = base64.b64encode(b"#MASKED_NAME#").decode() v = base64.b64encode(b"#MASKED_NAME#").decode()
elif k in ["alias", "device_alias", "device_name", "username"]: elif k in [
"alias",
"device_alias",
"device_name",
"username",
"location",
]:
v = "#MASKED_NAME#" v = "#MASKED_NAME#"
elif isinstance(res[k], int): elif isinstance(res[k], int):
v = 0 v = 0