summaryrefslogtreecommitdiffstats
path: root/etc/rc.openvpn
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-13 23:09:06 +0000
committerErmal <eri@pfsense.org>2013-12-13 23:09:06 +0000
commitc71b14fd9cc86ad1f718aedc6bad726645099c6d (patch)
tree8d9d98b405831cecc3e07f3a36fe448a02c61d5e /etc/rc.openvpn
parenta1007e19cf9511a25db35f72593fde79801f67e4 (diff)
downloadpfsense-c71b14fd9cc86ad1f718aedc6bad726645099c6d.zip
pfsense-c71b14fd9cc86ad1f718aedc6bad726645099c6d.tar.gz
Make scripts able to react when called from FCGI with GET method
Diffstat (limited to 'etc/rc.openvpn')
-rwxr-xr-xetc/rc.openvpn5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.openvpn b/etc/rc.openvpn
index 0af7f2a..3148e4f 100755
--- a/etc/rc.openvpn
+++ b/etc/rc.openvpn
@@ -71,7 +71,10 @@ if (file_exists("{$g['varrun_path']}/booting"))
return;
/* Input argument is a comma-separated list of gateway names, blank or "all". */
-$argument = trim($argv[1], " \n");
+if (isset($_GET))
+ $argument = $_GET['interface'];
+else
+ $argument = trim($argv[1], " \n");
if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-client'])) {
if (empty($argument) || $argument == "all") {
OpenPOWER on IntegriCloud