diff options
author | Luka Pavlyuk <pavlyuklp@yandex-team.ru> | 2016-11-07 00:32:39 +0300 |
---|---|---|
committer | Luka Pavlyuk <pavlyuklp@yandex-team.ru> | 2016-11-07 00:32:39 +0300 |
commit | c766ac7dd723f6e36980c48b0dd156b492556616 (patch) | |
tree | 9a271955442d0d2c16563e360850d1330ea4f1c1 | |
parent | 3c3f9397ded654b9f913932d6f844b0e3554b6c2 (diff) | |
download | pfsense-c766ac7dd723f6e36980c48b0dd156b492556616.zip pfsense-c766ac7dd723f6e36980c48b0dd156b492556616.tar.gz |
Fix #6899
-rw-r--r-- | src/etc/inc/interfaces.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index e08f518..d49f4fa 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1650,6 +1650,9 @@ function interface_ppps_configure($interface) { log_error(sprintf(gettext("Could not get a Local IP address for PPTP/L2TP link on %s in interfaces_ppps_configure. Using 0.0.0.0 ip!"), $port)); $localips[$pid] = "0.0.0.0"; } + if (!$g['booting'] && !is_ipaddr($gateways[$pid]) && is_hostname($gateways[$pid])) { + $gateways[$pid] = gethostbyname($gateways[$pid]); + } if (!is_ipaddr($gateways[$pid])) { log_error(sprintf(gettext('Could not get a PPTP/L2TP Remote IP address from %1$s for %2$s in interfaces_ppps_configure.'), $dhcp_gateway, $gway)); return 0; |