summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-28 08:59:08 -0400
committerjim-p <jimp@pfsense.org>2013-08-28 09:00:30 -0400
commitaed005392c61d5824c6982b8f9fb3de7f471ec4b (patch)
treee96776cce08f8b0973fa9a14847a27cb39dca9b1 /etc
parent4b1c16b9ce8bef223d8c22068a565c8e132c5f5d (diff)
downloadpfsense-aed005392c61d5824c6982b8f9fb3de7f471ec4b.zip
pfsense-aed005392c61d5824c6982b8f9fb3de7f471ec4b.tar.gz
Support the names used by the status page as well as those used internally by service entries.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/service-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index 19b247f..4547a53 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -552,9 +552,9 @@ function service_control_start($name, $extras) {
vpn_ipsec_force_reload();
break;
case 'openvpn':
- $vpnmode = $extras['vpnmode'];
+ $vpnmode = isset($extras['vpnmode']) ? $extras['vpnmode'] : $extras['mode'];
if (($vpnmode == "server") || ($vpnmode == "client")) {
- $id = $extras['id'];
+ $id = isset($extras['vpnid']) ? $extras['vpnid'] : $extras['id'];
$configfile = "{$g['varetc_path']}/openvpn/{$vpnmode}{$id}.conf";
if (file_exists($configfile))
openvpn_restart_by_vpnid($vpnmode, $id);
OpenPOWER on IntegriCloud