Project

General

Profile

« Previous | Next » 

Revision c7ada974

Added by Ermal LUÇI over 12 years ago

Remove dead code

View differences:

etc/inc/interfaces.inc
1460 1460
					log_error("Could not get a Local IP address for PPTP/L2TP link on {$port} in interfaces_ppps_configure. Using 0.0.0.0 ip!");
1461 1461
					$localips[$pid] = "0.0.0.0";
1462 1462
				}
1463
				/* XXX: This needs to go away soon! [It's commented out!] */
1464
				/* Configure the gateway (remote IP ) */
1465
				if (!$g['booting'] && !is_ipaddr($gateways[$pid]) && is_hostname($gateways[$pid])) {
1466
					/* XXX: Fix later
1467
					$gateways[$pid] = gethostbyname($gateways[$pid]);
1468
					if(!is_ipaddr($gateways[$pid])) {
1469
						log_error("Could not get a valid Gateway IP from {$port} via DNS in interfaces_ppps_configure.");
1470
						return 0;
1471
					}
1472
					*/
1473
				}
1474 1463
				if(!is_ipaddr($gateways[$pid])){
1475 1464
					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));
1476 1465
					return 0;

Also available in: Unified diff