diff options
author | Ermal <eri@pfsense.org> | 2013-03-18 14:35:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-18 14:36:03 +0000 |
commit | b6c1f22fd8c650210f112177fa655e9582c5d7be (patch) | |
tree | 819d88c2dbd9b3723cc0f246c860463676d842c1 /etc/rc.newwanipv6 | |
parent | f6461410c2b573fc43d4179a48229130a8f796cd (diff) | |
download | pfsense-b6c1f22fd8c650210f112177fa655e9582c5d7be.zip pfsense-b6c1f22fd8c650210f112177fa655e9582c5d7be.tar.gz |
Use get_interface_ipv6 on rc.newwanipv6 to and teach it to flush the cache on optional parameter. Also teach get_real_interface about the tedios ipv6 tunnel interfaces and return them when ipv6 family is specified
Diffstat (limited to 'etc/rc.newwanipv6')
-rwxr-xr-x | etc/rc.newwanipv6 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6 index 8204af1..e103c55 100755 --- a/etc/rc.newwanipv6 +++ b/etc/rc.newwanipv6 @@ -69,13 +69,11 @@ sleep(5); if(empty($argument)) { $interface = "wan"; $interface_real = get_real_interface($interface); - $curwanipv6 = get_interface_ipv6($interface); + $curwanipv6 = get_interface_ipv6($interface, true); } else { $interface_real = $argument; $interface = convert_real_interface_to_friendly_interface_name($interface_real); - $curwanipv6 = find_interface_ipv6($interface_real, true); - if (empty($curwanipv6)) - $curwanipv6 = get_interface_ipv6($interface); + $curwanipv6 = get_interface_ipv6($interface, true); } if (empty($interface)) { |