Revision dd88e65a
Added by Ermal LUÇI almost 15 years ago
etc/inc/system.inc | ||
---|---|---|
364 | 364 |
} |
365 | 365 |
log_error("ROUTING: $action default route to $gatewayip"); |
366 | 366 |
mwexec("/sbin/route {$action} default " . escapeshellarg($gatewayip)); |
367 |
} else if (is_ipaddr($config['interfaces']['wan']['gateway'])) { |
|
368 |
/* Adding gateway for 1.2-style configs without the new |
|
369 |
* gateway setup configured. |
|
370 |
* Force WAN to be default gateway because that is the 1.2 behavior. |
|
371 |
*/ |
|
372 |
log_error("WARNING: There is no default gateway in the configuration."); |
|
373 |
$gatewayip = $config['interfaces']['wan']['gateway']; |
|
374 |
mwexec("/sbin/route add default " . escapeshellarg($gatewayip), true); |
|
375 | 367 |
} |
376 | 368 |
} |
377 | 369 |
|
Also available in: Unified diff
Remove legacy code