From 511213a214e621b2d5a39854574c62b3a672f9e3 Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Thu, 22 Jun 2017 23:14:48 +0200 Subject: [PATCH] gluon-core: add interfaces having proto = gluon_mesh to mesh firewall zone --- .../gluon-core/files/lib/netifd/proto/gluon_mesh.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package/gluon-core/files/lib/netifd/proto/gluon_mesh.sh b/package/gluon-core/files/lib/netifd/proto/gluon_mesh.sh index 6f878d3d..ef763a49 100755 --- a/package/gluon-core/files/lib/netifd/proto/gluon_mesh.sh +++ b/package/gluon-core/files/lib/netifd/proto/gluon_mesh.sh @@ -25,10 +25,14 @@ proto_gluon_mesh_setup() { proto_init_update "$IFNAME" 1 - proto_add_data - json_add_boolean fixed_mtu "$FIXED_MTU" - json_add_boolean transitive "$TRANSITIVE" - proto_close_data + if [ "$IFNAME" != "br-wan" ] + then + proto_add_data + json_add_string zone mesh + json_add_boolean fixed_mtu "$FIXED_MTU" + json_add_boolean transitive "$TRANSITIVE" + proto_close_data + fi proto_send_update "$CONFIG" for script in /lib/gluon/core/mesh/post-setup.d/*; do