diff options
author | smos <seth.mos@dds.nl> | 2012-04-04 17:36:19 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-04-04 17:36:19 +0200 |
commit | 73c8a6c714e0801578ae99285c3f4fbef11b8f23 (patch) | |
tree | a7ad6840d5c964d4751c7cd6d6c98a96948c49c3 | |
parent | 5bf2cc847e024a9086b469fdc99453b9cbdd2d7a (diff) | |
download | pfsense-73c8a6c714e0801578ae99285c3f4fbef11b8f23.zip pfsense-73c8a6c714e0801578ae99285c3f4fbef11b8f23.tar.gz |
Make sure that we reconfigure the tunneled interfaces when we get a new ipv4 address.
-rwxr-xr-x | etc/rc.newwanip | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 12a6732..90c0994 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -139,13 +139,10 @@ if(is_array($config['gifs']['gif'])){ /* check tunneled IPv6 interface tracking */ switch($config['interfaces'][$interface]['type6']) { case "6to4": - case "6rd": - foreach($config['interfaces'] as $iftrackname => $iftrack) { - if($iftrack['track6-interface'] == $interface) { - log_error("interface {%iftrackname} depends on {$interface}, configuring"); - interface_track6_configure($iftrackname); - } - } + interface_6to4_configure($interface); + break; + case "6rd": + interface_6rd_configure($interface); break; } |