firewall3: add UBUS support for ipset sections
[project/firewall3.git] / main.c
diff --git a/main.c b/main.c
index 4cf46fd84227d1034a52e3471fd0776d038bbbbf..6e275ef50955cdfb470130c465c3621b167471d0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -101,7 +101,7 @@ build_state(bool runtime)
        fw3_ubus_rules(&b);
 
        fw3_load_defaults(state, p);
-       fw3_load_ipsets(state, p);
+       fw3_load_ipsets(state, p, b.head);
        fw3_load_zones(state, p);
        fw3_load_rules(state, p, b.head);
        fw3_load_redirects(state, p, b.head);