Revision d3c269d3
Added by Ermal LUÇI over 10 years ago
etc/inc/gwlb.inc | ||
---|---|---|
966 | 966 |
} |
967 | 967 |
|
968 | 968 |
// for dynamic interfaces we handle them through the $interface_router file. |
969 |
if (!is_ipaddrv4($gw) && !is_ipaddrv4($gwcfg['ipaddr'])) {
|
|
969 |
if (($gw == NULL || !is_ipaddrv4($gw)) && !is_ipaddrv4($gwcfg['ipaddr'])) {
|
|
970 | 970 |
$realif = get_real_interface($interface); |
971 | 971 |
if (file_exists("{$g['tmp_path']}/{$realif}_router")) { |
972 | 972 |
$gw = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"), " \n"); |
... | ... | |
996 | 996 |
} |
997 | 997 |
|
998 | 998 |
// for dynamic interfaces we handle them through the $interface_router file. |
999 |
if (!is_ipaddrv6($gw) && !is_ipaddrv6($gwcfg['ipaddrv6'])) {
|
|
999 |
if (($gw == NULL || !is_ipaddrv6($gw)) && !is_ipaddrv6($gwcfg['ipaddrv6'])) {
|
|
1000 | 1000 |
$realif = get_real_interface($interface); |
1001 | 1001 |
if (file_exists("{$g['tmp_path']}/{$realif}_routerv6")) { |
1002 | 1002 |
$gw = trim(file_get_contents("{$g['tmp_path']}/{$realif}_routerv6"), " \n"); |
Also available in: Unified diff
Make some more useful checks here