From: Jo-Philipp Wich Date: Sun, 6 Nov 2016 15:58:09 +0000 (+0100) Subject: main: make failing ubus connection nonfatal X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c520966c2a92a14c931f411d502ed1a8dedf604d;p=oweals%2Ffirewall3.git 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 --- 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)) {