diff options
author | Ermal <eri@pfsense.org> | 2013-06-17 08:26:49 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-06-17 08:26:49 +0000 |
commit | be544a5ebc7a73b1e3ace58353b3f2d9a6308ab8 (patch) | |
tree | f0519afa0de80c664cc147b63982d3e63905373c /etc/inc/system.inc | |
parent | 8026f19c93920ab6bbb1be2379fcbc6ae0ff9c80 (diff) | |
download | pfsense-be544a5ebc7a73b1e3ace58353b3f2d9a6308ab8.zip pfsense-be544a5ebc7a73b1e3ace58353b3f2d9a6308ab8.tar.gz |
Use family parameter for v6 to get correct interface
Diffstat (limited to 'etc/inc/system.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 14cd09c..5f5e179 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -394,7 +394,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']); } @@ -441,7 +441,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}"); |