summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-10 22:34:47 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-10 22:35:15 +0100
commit31cf5a9315f39fba7d0baad26ec992bf63e556d3 (patch)
treec810792c612894d5462586a2fa6e1b1cb8a1b34a /etc
parent83b0a21ac44dd792cb0565e451fc1917743931d8 (diff)
downloadpfsense-31cf5a9315f39fba7d0baad26ec992bf63e556d3.zip
pfsense-31cf5a9315f39fba7d0baad26ec992bf63e556d3.tar.gz
Fixes #3281 do not undo any changes already done for gif/gre interface.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc22
1 files changed, 13 insertions, 9 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0620779..cd709a9 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3020,15 +3020,19 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
if (!platform_booting()) {
link_interface_to_vips($interface, "update");
- unset($gre);
- $gre = link_interface_to_gre($interface);
- if (!empty($gre))
- array_walk($gre, 'interface_gre_configure');
-
- unset($gif);
- $gif = link_interface_to_gif($interface);
- if (!empty($gif))
- array_walk($gif, 'interface_gif_configure');
+ if ($tunnelif != 'gre') {
+ unset($gre);
+ $gre = link_interface_to_gre($interface);
+ if (!empty($gre))
+ array_walk($gre, 'interface_gre_configure');
+ }
+
+ if ($tunnelif != 'gif') {
+ unset($gif);
+ $gif = link_interface_to_gif($interface);
+ if (!empty($gif))
+ array_walk($gif, 'interface_gif_configure');
+ }
if ($linkupevent == false || substr($realif, 0, 4) == "ovpn") {
unset($bridgetmp);
OpenPOWER on IntegriCloud