Skip to content
Snippets Groups Projects
Commit 4d016d9d authored by Amin Ben Romdhane's avatar Amin Ben Romdhane
Browse files

openvpn: Update status value

parent 004c9af8
No related branches found
No related tags found
1 merge request!118openvpn: Fix argument parsing for log option
......@@ -29,7 +29,7 @@ get_vpn_connection_status()
if [ ${process_count} -eq 0 ]; then
echo '{"Status": "Down"}'
else
echo '{"Status": "Up"}'
echo '{"Status": "Error_Misconfigured"}'
fi
fi
}
......@@ -38,7 +38,7 @@ case "$1" in
list)
# Output supported actions and their parameters in JSON format
echo '{
"import_ovpn": {"instance": "String", "name": "String", "url": "String", "user": "String", "pass":"String","store_pass":true},
"import_ovpn": {"name": "String", "url": "String", "user": "String", "pass":"String","store_pass":true},
"connect": {"instance": "String", "username": "String", "password": "String"},
"disconnect": {"instance": "String"},
"status": {"instance": "String"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment