summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-11-06 16:58:09 +0100
committerJo-Philipp Wich <jo@mein.io>2016-11-06 16:58:09 +0100
commitc520966c2a92a14c931f411d502ed1a8dedf604d (patch)
tree2def21257eaa550025daa4a40ddf57d9d62af332
parent37df903ae8efd88d740b1ed8cc2e0ae384226dd6 (diff)
downloadfirewall3-c520966c2a92a14c931f411d502ed1a8dedf604d.tar.gz
main: make failing ubus connection nonfatal
The ubus network runtime information is not strictly required to use firewall3, so make a failing ubus connection nonfatal. This allows testing and running firewall3 on an ordinary desktop linux system, given an appropriate configuration which uses "option device" instead of "option network" for zone declarations. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 347902a..e38963d 100644
--- a/main.c
+++ b/main.c
@@ -79,7 +79,7 @@ build_state(bool runtime)
else
{
if (!fw3_ubus_connect())
- error("Failed to connect to ubus");
+ warn("Failed to connect to ubus");
if (uci_load(state->uci, "firewall", &p))
{