daemon: added non promiscuous as default when configuring wlan

This commit is contained in:
Blake Harnden 2021-04-20 09:48:44 -07:00
parent b12aa981d5
commit 55d5bb3859

View file

@ -454,7 +454,7 @@ class BasicRangeModel(WirelessModel):
self.delay = self._get_config(self.delay, config, "delay")
self.loss = self._get_config(self.loss, config, "error")
self.jitter = self._get_config(self.jitter, config, "jitter")
promiscuous = config["promiscuous"] == "1"
promiscuous = config.get("promiscuous", "0") == "1"
if self.promiscuous and not promiscuous:
self.wlan.net_client.set_mac_learning(self.wlan.brname, LEARNING_ENABLED)
elif not self.promiscuous and promiscuous: