Revision 24cdea2f
Added by Ermal LUÇI over 12 years ago
etc/inc/filter.inc | ||
---|---|---|
844 | 844 |
$oic['if'] = get_real_interface($if); |
845 | 845 |
if (!does_interface_exist($oic['if'])) |
846 | 846 |
continue; |
847 |
$oic['ifv6'] = get_real_interface($if, "inet6"); |
|
847 | 848 |
$oic['ip'] = get_interface_ip($if); |
848 | 849 |
$oic['ipv6'] = get_interface_ipv6($if); |
849 | 850 |
if(!is_ipaddrv4($oc['ipaddr']) && !empty($oc['ipaddr'])) |
... | ... | |
2164 | 2165 |
if ($rule['ipprotocol'] == "inet6") { |
2165 | 2166 |
$rg = get_interface_gateway_v6($rule['interface']); |
2166 | 2167 |
if (is_ipaddrv6($rg)) |
2167 |
$aline['reply'] = "reply-to ( {$ifcfg['if']} {$rg} ) "; |
|
2168 |
$aline['reply'] = "reply-to ( {$ifcfg['ifv6']} {$rg} ) ";
|
|
2168 | 2169 |
else if ($rule['interface'] <> "pptp") |
2169 | 2170 |
log_error("Could not find IPv6 gateway for interface({$rule['interface']})."); |
2170 | 2171 |
} else { |
Also available in: Unified diff
Use proper interface for reply-to in case of 6rd/6to4