mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Include interface scope on IPv6 static routes to link local gateway IPs. Ticket #6506
This commit is contained in:
parent
72a6e5d071
commit
412a9cd026
@ -745,6 +745,10 @@ function system_staticroutes_configure($interface = "", $update_dns = false) {
|
||||
|
||||
if (is_subnet($ip)) {
|
||||
if (is_ipaddr($gatewayip)) {
|
||||
if (is_linklocal($gatewayip) == "6" && !strpos($gatewayip, '%')) {
|
||||
// add interface scope for link local v6 routes
|
||||
$gatewayip .= "%$interfacegw";
|
||||
}
|
||||
mwexec($cmd . escapeshellarg($gatewayip));
|
||||
if (isset($config['system']['route-debug'])) {
|
||||
$mt = microtime();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user