Merge pull request #564 from naota/patch-2

Properly connect to the selected VPN profile
This commit is contained in:
tobi-wan-kenobi 2020-02-27 21:02:52 +01:00 committed by GitHub
commit e390cdae32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ class Module(bumblebee.engine.Module):
try: try:
bumblebee.util.execute("nmcli c up \"{vpn}\"" bumblebee.util.execute("nmcli c up \"{vpn}\""
.format(vpn=self._connected_vpn_profile)) .format(vpn=self._selected_vpn_profile))
self._connected_vpn_profile = name self._connected_vpn_profile = name
except Exception as e: except Exception as e:
logging.exception("Couldn't establish VPN connection") logging.exception("Couldn't establish VPN connection")