diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-13 15:49:04 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-13 15:52:01 +0200 |
commit | 1d0564c3558a115d90fe266e668221135bcb3221 (patch) | |
tree | 494c15aee680e6352b7c22e89fd45749e3cf0597 | |
parent | 82ccd9e34fe87d31d9909fed754950b2c75bc6ac (diff) | |
download | firewall3-1d0564c3558a115d90fe266e668221135bcb3221.tar.gz |
ubus: fix interface name and proto lookup
Lookup of iface_name and iface_proto in the json data were switched
in fw3_ubus_rules
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | ubus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -259,9 +259,9 @@ fw3_ubus_rules(struct blob_buf *b) if (!strcmp(blobmsg_name(cur), "l3_device")) l3_device = blobmsg_get_string(cur); else if (!strcmp(blobmsg_name(cur), "interface")) - iface_proto = blobmsg_get_string(cur); - else if (!strcmp(blobmsg_name(cur), "proto")) iface_name = blobmsg_get_string(cur); + else if (!strcmp(blobmsg_name(cur), "proto")) + iface_proto = blobmsg_get_string(cur); else if (!strcmp(blobmsg_name(cur), "data")) data = cur; } |