mirror of https://github.com/OpenVPN/openvpn-gui
(i) State is changed to detached before auto-starting so that OnHold() will see state = resuming and keep the hold. State is set to disconnected instead of detached on detach so that manual starts will release the hold automatically. End result: While connecting automatically, do not release if management-hold is on. But while started manually, release from hold so that connection can complete without further user action. In normal use of automatic service, one would not add management hold into the config. However, if the user disconnects the connection the GUI puts it on hold, and we do not want to auto-start it after a lock-unlock or some other automatic action. (ii) Also, currently, for persistent connections, the status window is not shown automatically which feels unnatural in real use. Instead, popup the status window when connection is manually initiated. Its not popped up when automatically attached to or if silent_connection is on. Only persistent connections are affected by the change. fixup: config file list is not recreated from scratch when enable_persistent == 2 (auto attach mode) to avoid losing info such as auto_connect = false on detached connections. Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/519/head
parent
314ceb04b4
commit
6932c5e710
Loading…
Reference in new issue