diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-10 22:34:47 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-10 22:34:47 +0100 |
commit | 7de6a47f1df1d4f568060285c330b0b308902991 (patch) | |
tree | 1411bc516ec9aa05d4acb1af64ad6e30302af472 /etc/inc/interfaces.inc | |
parent | e821f30e7dd50285cf0c590d205409bb53cf3d6a (diff) | |
download | pfsense-7de6a47f1df1d4f568060285c330b0b308902991.zip pfsense-7de6a47f1df1d4f568060285c330b0b308902991.tar.gz |
Fixes #3281 do not undo any changes already done for gif/gre interface.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 22 |
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); |