Revision b6c1f22f
Added by Ermal LUÇI over 12 years ago
etc/rc.newwanipv6 | ||
---|---|---|
69 | 69 |
if(empty($argument)) { |
70 | 70 |
$interface = "wan"; |
71 | 71 |
$interface_real = get_real_interface($interface); |
72 |
$curwanipv6 = get_interface_ipv6($interface); |
|
72 |
$curwanipv6 = get_interface_ipv6($interface, true);
|
|
73 | 73 |
} else { |
74 | 74 |
$interface_real = $argument; |
75 | 75 |
$interface = convert_real_interface_to_friendly_interface_name($interface_real); |
76 |
$curwanipv6 = find_interface_ipv6($interface_real, true); |
|
77 |
if (empty($curwanipv6)) |
|
78 |
$curwanipv6 = get_interface_ipv6($interface); |
|
76 |
$curwanipv6 = get_interface_ipv6($interface, true); |
|
79 | 77 |
} |
80 | 78 |
|
81 | 79 |
if (empty($interface)) { |
Also available in: Unified diff
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