Skip to main content

Disconnect current VPN (device.turn_off_vpn)

Declaration

device.turn_off_vpn()

Description

Disconnect current VPN connection if connected or connecting; otherwise do nothing
Note: This function is not very stable; recommended to use VPN config module (vpnconf)

Example

device.turn_off_vpn()