Revision d6a891da
Added by Ermal Luçi over 15 years ago
usr/local/www/interfaces.php | ||
---|---|---|
477 | 477 |
else |
478 | 478 |
unset($wancfg['blockbogons']); |
479 | 479 |
$wancfg['spoofmac'] = $_POST['spoofmac']; |
480 |
$wancfg['mtu'] = $_POST['mtu']; |
|
480 |
if (empty($_POST['mtu'])) |
|
481 |
unset($wancfg['mtu']); |
|
482 |
else |
|
483 |
$wancfg['mtu'] = $_POST['mtu']; |
|
481 | 484 |
if (isset($wancfg['wireless'])) |
482 | 485 |
handle_wireless_post(); |
483 | 486 |
write_config(); |
Also available in: Unified diff
Avoid errors that appear if this is set uncorrectly.