Get status of selected VPN (vpnconf.status)
Declaration
status = vpnconf.status()
Returns
-
status
Table or nil. On success, returns a status table; returns nil if no VPN is selected.Returned status table
{
text = textual description of the current status,
connected = whether the VPN is connected,
}
Example
local status = vpnconf.status()
if status then
sys.alert(table.deep_dump(status))
else
sys.alert('No VPN selected. After creating a VPN, call vpnconf.select to select it.')
end
Note: Uses sys.alert
, table.deep_dump