summaryrefslogtreecommitdiffstats
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:53 -0400
commitc53f1e0c8550d27693200c099148598e8cd21ba6 (patch)
treea49c37bec2fba3d8e3a05fa44a91f70d73772a26
parente89c3caf2c4e69e255d18c8a19d163b2d36490e0 (diff)
downloadpfsense-c53f1e0c8550d27693200c099148598e8cd21ba6.zip
pfsense-c53f1e0c8550d27693200c099148598e8cd21ba6.tar.gz
Support the names used by the status page as well as those used internally by service entries.
-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