fixed typo in captive portal #200

This commit is contained in:
Tomaae 2022-06-30 13:48:22 +02:00
parent ce54b6ef1b
commit 7d1915b566
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -2029,11 +2029,11 @@ class MikrotikControllerData:
if self.option_sensor_client_captive:
if uid in self.data["hostspot_host"]:
self.data["host"][uid]["authorized"] = self.data["hostspot_host"][
"authorized"
]
uid
]["authorized"]
self.data["host"][uid]["bypassed"] = self.data["hostspot_host"][
"bypassed"
]
uid
]["bypassed"]
else:
if "authorized" in self.data["host"][uid]:
del self.data["host"][uid]["authorized"]