diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-11-06 16:58:09 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-11-06 16:58:09 +0100 |
commit | c520966c2a92a14c931f411d502ed1a8dedf604d (patch) | |
tree | 2def21257eaa550025daa4a40ddf57d9d62af332 | |
parent | 37df903ae8efd88d740b1ed8cc2e0ae384226dd6 (diff) | |
download | firewall3-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |