Single source of truth for tunnel state between GUI and service #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The service holds tunnel state as instance attributes set via signals
(
set_tun,set_dns,aqomui_service.py:213-222) and the GUI pulls it backafterwards with
return_tun_device(aqomui_gui.py:2338-2361). State lives intwo processes with no reconciliation after a service restart -- the service even
reasons about GUI/service version skew (
check_version,aqomui_service.py:92).Values are addressed by string concatenation throughout
(
getattr(self, "tun{}".format(add))), which is how the DNS-to-the-wrong-variable bug happened.
Target: one typed state object owned by the service, pushed to the GUI via a
single signal. This rides naturally on the management-interface work rather than
preceding it.