summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-04-28 19:33:18 +0000
committerErmal <eri@pfsense.org>2011-04-28 19:33:18 +0000
commit65531b4bc8ac4c7d8ca6087425a93c8053585554 (patch)
tree29835e6a9bf572a629f328e4980364a07c022b6d /etc
parentd1ae97052d38bfea122dceb7bf339b2ce7569e51 (diff)
downloadpfsense-65531b4bc8ac4c7d8ca6087425a93c8053585554.zip
pfsense-65531b4bc8ac4c7d8ca6087425a93c8053585554.tar.gz
Make sure that openvpn tunnels are not impacted by hitting 'Save' on the Interface->Configuration page when assigned.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 7e107c6..083497c 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2515,7 +2515,8 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
// Need code to handle MLPPP if we ever use $realhwif for MLPPP handling
$realhwif = $realhwif_array[0];
- if (!$g['booting']) {
+
+ if (!$g['booting'] && !substr($realif, 0, 4) == "ovpn") {
/* remove all IPv4 addresses */
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0);
OpenPOWER on IntegriCloud