summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-28 16:48:20 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-28 16:48:36 +0100
commitfea0b65224645506be0a6696b5b8a536bbf4e9a6 (patch)
tree898696af1fae2e4a38384c094f585324bfef191d /etc/inc/gwlb.inc
parent16d6c1df8c5b110c9fd7a5e9238d03b820ed2445 (diff)
downloadpfsense-fea0b65224645506be0a6696b5b8a536bbf4e9a6.zip
pfsense-fea0b65224645506be0a6696b5b8a536bbf4e9a6.tar.gz
Correct typo on variable. Should help https://forum.pfsense.org/index.php?topic=84451.0
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index e2ff382..2cb69a6 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -792,7 +792,7 @@ function fixup_default_gateway($ipprotocol, $gateways_status, $gateways_arr) {
}
mwexec("/sbin/route change {$inetfamily} default {$gateways_arr[$upgw]['gateway']}");
}
- } else if (!empty($dftgwname)) {
+ } else if (!empty($dfltgwname)) {
$defaultgw = trim(exec("/sbin/route -n get -{$ipprotocol} default | /usr/bin/awk '/gateway:/ {print $2}'"), " \n");
if ($ipprotocol == 'inet6' && !is_ipaddrv6($gateways_arr[$dfltgwname]['gateway']))
return;
OpenPOWER on IntegriCloud