summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/system.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
index 4f81d80..6e43c8d 100644
--- a/src/etc/inc/system.inc
+++ b/src/etc/inc/system.inc
@@ -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();
OpenPOWER on IntegriCloud