diff options
-rw-r--r-- | etc/inc/system.inc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index d2eb733..4a7f0ed 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -451,22 +451,15 @@ function system_routing_configure($interface = "") { $action = "change"; if(is_ipaddrv6($gatewayip)) { - $inet6 = "-inet6"; + $inetfamily = "-inet6"; } else { - $inet6 = ""; + $inetfamily = "-inet"; } if (is_ipaddr($gatewayip)) { -<<<<<<< HEAD - mwexec("/sbin/route {$action} {$inet6} " . escapeshellarg($rtent['network']) . + mwexec("/sbin/route {$action} {$inetfamily} " . escapeshellarg($rtent['network']) . " " . escapeshellarg($gatewayip)); } else if (!empty($interfacegw)) { - mwexec("/sbin/route {$action} {$inet6} " . escapeshellarg($rtent['network']) . -======= - mwexec("/sbin/route {$action} -inet " . escapeshellarg($rtent['network']) . - " " . escapeshellarg($gatewayip)); - } else if (!empty($interfacegw)) { - mwexec("/sbin/route {$action} -inet " . escapeshellarg($rtent['network']) . ->>>>>>> upstream/master + mwexec("/sbin/route {$action} {$inetfamily} " . escapeshellarg($rtent['network']) . " -iface " . escapeshellarg($interfacegw)); } } |