From 765664a41ca6682aa64f7baa190268fb4e8a36a0 Mon Sep 17 00:00:00 2001 From: gnhb Date: Tue, 15 Jun 2010 12:53:52 +0700 Subject: [PATCH] Fix comments to work better. --- etc/inc/interfaces.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e45a991570..84e1376521 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1063,13 +1063,11 @@ function interface_ppps_configure($interface) { /* Configure the gateway (remote IP ) */ if (!$g['booting'] && !is_ipaddr($gateways[$pid]) && is_hostname($gateways[$pid])) { /* XXX: Fix later - $gway = $gateways[$pid]; - $dhcp_gateway = get_interface_gateway(convert_real_interface_to_friendly_interface_name($port)); - if(!is_ipaddr($dhcp_gateway)) { - log_error("Could not get a valid Gateway IP from {$port} in interfaces_ppps_configure."); + $gateways[$pid] = gethostbyname($gateways[$pid]); + if(!is_ipaddr($gateways[$pid])) { + log_error("Could not get a valid Gateway IP from {$port} via DNS in interfaces_ppps_configure."); return 0; } - $gateways[$pid] = trim(`dig @{$dhcp_gateway} +short -q {$gateways[$pid]}`); */ } if(!is_ipaddr($gateways[$pid])){