diff options
author | jim-p <jimp@pfsense.org> | 2013-02-12 15:27:19 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-12 15:28:06 -0500 |
commit | f8edf05d872f8887b891f15b48aa694a94ed2f9e (patch) | |
tree | a18975c687e0b42464a43ae3d28e7926005ace1f | |
parent | 100f3e7191a0c720857316c4ba0cac0890fe8177 (diff) | |
download | pfsense-f8edf05d872f8887b891f15b48aa694a94ed2f9e.zip pfsense-f8edf05d872f8887b891f15b48aa694a94ed2f9e.tar.gz |
Fix these tests, they will never succeed the way we set these variables using the old test. Fixes #1987
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 55c8bbc..20a2a9b 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -822,11 +822,11 @@ function interface_gre_configure(&$gre, $grekey = "") { } else { mwexec("/sbin/ifconfig {$greif} {$gre['tunnel-local-addr']} {$gre['tunnel-remote-addr']} netmask " . gen_subnet_mask($gre['tunnel-remote-net'])); } - if (isset($gre['link0']) && $gre['link0']) + if (isset($gre['link0'])) pfSense_interface_flags($greif, IFF_LINK0); - if (isset($gre['link1']) && $gre['link1']) + if (isset($gre['link1'])) pfSense_interface_flags($greif, IFF_LINK1); - if (isset($gre['link2']) && $gre['link2']) + if (isset($gre['link2'])) pfSense_interface_flags($greif, IFF_LINK2); if($greif) @@ -912,9 +912,9 @@ function interface_gif_configure(&$gif, $gifkey = "") { } else { mwexec("/sbin/ifconfig {$gifif} {$gif['tunnel-local-addr']} {$gif['tunnel-remote-addr']} netmask " . gen_subnet_mask($gif['tunnel-remote-net'])); } - if (isset($gif['link0']) && $gif['link0']) + if (isset($gif['link0'])) pfSense_interface_flags($gifif, IFF_LINK0); - if (isset($gif['link1']) && $gif['link1']) + if (isset($gif['link1'])) pfSense_interface_flags($gifif, IFF_LINK1); if($gifif) interfaces_bring_up($gifif); |