Browse Source

ubus: add the interface name to browse reply

Signed-off-by: John Crispin <john@phrozen.org>
John Crispin 1 year ago
parent
commit
65b3308d13
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ubus.c

+ 1 - 0
ubus.c

@@ -97,6 +97,7 @@ umdns_browse(struct ubus_context *ctx, struct ubus_object *obj,
 			*local = '\0';
 		c2 = blobmsg_open_table(&b, buffer);
 		strncat(buffer, ".local", MAX_NAME_LEN);
+		blobmsg_add_string(&b, "iface", s->iface->name);
 		cache_dump_records(&b, buffer, array);
 		cache_dump_records(&b, s->entry, array);
 		blobmsg_close_table(&b, c2);