summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-05-07 19:28:35 -0500
committerChris Buechler <cmb@pfsense.org>2016-05-07 19:29:01 -0500
commitadff31362e79286a74d114c5015469e369833c85 (patch)
treeab3786b3b7103da5704f58a3d2578919dea4a3f6
parent55a9ca071b7a205c2331c0275d73d7d60f8c752d (diff)
downloadpfsense-adff31362e79286a74d114c5015469e369833c85.zip
pfsense-adff31362e79286a74d114c5015469e369833c85.tar.gz
Log if rc.newwanip(v6) is called with empty interface.
-rwxr-xr-xsrc/etc/rc.newwanip1
-rwxr-xr-xsrc/etc/rc.newwanipv61
2 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip
index 4831043..d7afb2a 100755
--- a/src/etc/rc.newwanip
+++ b/src/etc/rc.newwanip
@@ -106,6 +106,7 @@ if (empty($interface)) {
if (platform_booting()) {
return;
}
+ log_error("rc.newwanip called with empty interface.");
filter_configure();
restart_packages();
return;
diff --git a/src/etc/rc.newwanipv6 b/src/etc/rc.newwanipv6
index bd46bdf..1187f13 100755
--- a/src/etc/rc.newwanipv6
+++ b/src/etc/rc.newwanipv6
@@ -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;
}
OpenPOWER on IntegriCloud