Skip to main content

Connect to selected VPN (device.turn_on_vpn)

Declaration

device.turn_on_vpn()

Description

Try to connect to the currently selected VPN; if no VPN is selected, this call is a no-op.
Note: This function is not very stable. Prefer the more stable VPN config module (vpnconf).

Example

device.turn_on_vpn()