Browse Source

zones: fix emitting match rules for zones with only "extra" options

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Jo-Philipp Wich 4 years ago
parent
commit
72a486f7fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zones.c

+ 1 - 1
zones.c

@@ -594,7 +594,7 @@ print_interface_rules(struct fw3_ipt_handle *handle, struct fw3_state *state,
 		if (!fw3_is_family(sub, handle->family))
 			continue;
 
-		if (!dev && !sub)
+		if (!dev && !sub && !zone->extra_src && !zone->extra_dest)
 			continue;
 
 		print_interface_rule(handle, state, reload, zone, dev, sub);