mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix up little things.
This commit is contained in:
parent
3a906378cb
commit
c1cc447c5d
@ -1005,8 +1005,9 @@ function interface_ppps_configure($interface) {
|
||||
$mtus = explode(',',$ppp['mtu']);
|
||||
$mrus = explode(',',$ppp['mru']);
|
||||
|
||||
if (isset($ppp['idletimeout']))
|
||||
if (isset($ppp['mrru']))
|
||||
$mrrus = explode(',',$ppp['mrru']);
|
||||
|
||||
// Construct the mpd.conf file
|
||||
$mpdconf = <<<EOD
|
||||
startup:
|
||||
@ -1211,7 +1212,7 @@ EOD;
|
||||
$mpdconf .= "\topen\r\n";
|
||||
} //end foreach($port)
|
||||
|
||||
// Write out configuration for mpd_ppp.conf and mpd.secret
|
||||
// Write out mpd_ppp.conf
|
||||
fwrite($fd, $mpdconf);
|
||||
fclose($fd);
|
||||
|
||||
@ -2285,7 +2286,7 @@ function interface_dhcp_configure($interface = "wan") {
|
||||
$wanif = get_real_interface($interface, true);
|
||||
if (stristr($wanif,',')) {
|
||||
log_error("Invalid interface \"{$wanif}\" in interface_dhcp_configure()");
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
$dhclientconf = "";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user