diff options
author | Ermal <eri@pfsense.org> | 2013-06-17 08:26:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-06-17 08:27:13 +0000 |
commit | f960f9dd20580ea8da5e732b6e54a13b84d6286d (patch) | |
tree | c91b8ab92528a3aa3c40cf54e1d86b14ce74ab67 /etc/inc | |
parent | 10ce1ac1cdf271b545bce23a1a60a73dd0221813 (diff) | |
download | pfsense-f960f9dd20580ea8da5e732b6e54a13b84d6286d.zip pfsense-f960f9dd20580ea8da5e732b6e54a13b84d6286d.tar.gz |
Use family parameter for v6 to get correct interface
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 78e4b34..bbf0180 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -393,7 +393,7 @@ function system_routing_configure($interface = "") { $gatewayipv6 = $gateway['gateway']; $interfacegwv6 = $gateway['interface']; if (!empty($gateway['interface'])) { - $defaultifv6 = get_real_interface($gateway['interface']); + $defaultifv6 = get_real_interface($gateway['interface'], "inet6"); if ($defaultifv6) @file_put_contents("{$g['tmp_path']}/{$defaultifv6}_defaultgwv6", $gateway['gateway']); } @@ -440,7 +440,7 @@ function system_routing_configure($interface = "") { ; else if (($interfacegwv6 <> "bgpd") && (is_ipaddrv6($gatewayipv6))) { $ifscope = ""; - if(is_linklocal($gatewayipv6)) + if (is_linklocal($gatewayipv6)) $ifscope = "%{$defaultifv6}"; log_error("ROUTING: setting IPv6 default route to {$gatewayipv6}{$ifscope}"); mwexec("/sbin/route change -inet6 default " . escapeshellarg($gatewayipv6) ."{$ifscope}"); |