Log if rc.newwanip(v6) is called with empty interface.

This commit is contained in:
Chris Buechler 2016-05-07 19:28:35 -05:00
parent 6f069e921c
commit ef945b86ae
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ if (empty($interface)) {
if (platform_booting()) {
return;
}
log_error("rc.newwanip called with empty interface.");
filter_configure();
restart_packages();
return;

View File

@ -74,6 +74,7 @@ if (empty($argument)) {
$interface_descr = convert_friendly_interface_to_friendly_descr($interface);
if (empty($interface)) {
log_error("rc.newwanipv6 called with empty interface");
filter_configure();
return;
}