iptables: support -i, -o, -s and -d in option extra
[project/firewall3.git] / main.c
diff --git a/main.c b/main.c
index 5888ab50285a6e416d3434ea28f9e16901d7106a..c4b82282b6c416112c51f3fe1f2efb9e37e73dcc 100644 (file)
--- a/main.c
+++ b/main.c
@@ -101,13 +101,13 @@ 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);
        fw3_load_snats(state, p, b.head);
-       fw3_load_forwards(state, p);
-       fw3_load_includes(state, p);
+       fw3_load_forwards(state, p, b.head);
+       fw3_load_includes(state, p, b.head);
 
        return true;
 }