diff options
author | Ermal <eri@pfsense.org> | 2013-12-13 23:09:06 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-13 23:09:06 +0000 |
commit | c71b14fd9cc86ad1f718aedc6bad726645099c6d (patch) | |
tree | 8d9d98b405831cecc3e07f3a36fe448a02c61d5e /etc/rc.openvpn | |
parent | a1007e19cf9511a25db35f72593fde79801f67e4 (diff) | |
download | pfsense-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-x | etc/rc.openvpn | 5 |
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") { |