Skip to main content

Disconnect current VPN (device.turn_off_vpn)

Declaration

device.turn_off_vpn()

Description

Disconnect the currently connected VPN; if no VPN is connecting or connected, this call is a no-op.
Note: This function is not very stable and the call may take no effect. Prefer the more stable VPN config module (vpnconf).

Example

device.turn_off_vpn()