Revision d421e319
Added by Ermal LUÇI over 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1215 | 1215 |
$localips[$pid] = get_interface_ip($port); // try to get the interface IP from the port |
1216 | 1216 |
|
1217 | 1217 |
if(!is_ipaddr($localips[$pid])){ |
1218 |
log_error("Could not get a Local IP address for PPTP/L2TP link on {$port} in interfaces_ppps_configure."); |
|
1219 |
return 0;
|
|
1218 |
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!");
|
|
1219 |
$localips[$pid] = "0.0.0.0";
|
|
1220 | 1220 |
} |
1221 | 1221 |
/* XXX: This needs to go away soon! [It's commented out!] */ |
1222 | 1222 |
/* Configure the gateway (remote IP ) */ |
... | ... | |
1492 | 1492 |
$mpdconf .= <<<EOD |
1493 | 1493 |
set {$type} self {$localips[$pid]} |
1494 | 1494 |
set {$type} peer {$gateways[$pid]} |
1495 |
set {$type} disable windowing |
|
1496 | 1495 |
|
1497 | 1496 |
EOD; |
1498 | 1497 |
} |
Also available in: Unified diff
Do not error out for pptp/l2tp localip setting not set since its legitimate.