summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-12 11:43:25 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-12 11:43:25 -0600
commitb866103e83ccf565086bcc4a4348c6866359a44a (patch)
tree91e9f439109e7fce6b3b8b2411d61f9911828b50 /src/usr/local/www
parent3d689c86e3efddf134a121ccc08e8a42232ad7cc (diff)
downloadpfsense-b866103e83ccf565086bcc4a4348c6866359a44a.zip
pfsense-b866103e83ccf565086bcc4a4348c6866359a44a.tar.gz
Background 'ipsec up' commands so they don't hang up the web GUI. Ticket #5886
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/status_ipsec.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_ipsec.php b/src/usr/local/www/status_ipsec.php
index a85c873..10b25b1 100644
--- a/src/usr/local/www/status_ipsec.php
+++ b/src/usr/local/www/status_ipsec.php
@@ -83,11 +83,11 @@ if ($_GET['act'] == 'connect') {
for ($i = 0; $i < $ph2entries; $i++) {
$connid = escapeshellarg("con{$_GET['ikeid']}00{$i}");
mwexec("/usr/local/sbin/ipsec down {$connid}");
- mwexec("/usr/local/sbin/ipsec up {$connid}");
+ mwexec_bg("/usr/local/sbin/ipsec up {$connid}");
}
} else {
mwexec("/usr/local/sbin/ipsec down con" . escapeshellarg($_GET['ikeid']));
- mwexec("/usr/local/sbin/ipsec up con" . escapeshellarg($_GET['ikeid']));
+ mwexec_bg("/usr/local/sbin/ipsec up con" . escapeshellarg($_GET['ikeid']));
}
}
}
OpenPOWER on IntegriCloud