Browse Source

core: fix for bitwise test in core rpc command

Daniel-Constantin Mierla 8 năm trước cách đây
mục cha
commit
f662a62519
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/core_cmd.c

+ 1 - 1
src/core/core_cmd.c

@@ -944,7 +944,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
 				rpc->struct_add(ha, "ss",
 						"proto", get_proto_name(proto),
 						"address", si->name.s);
-				if (!si->flags & SI_IS_IP)
+				if (!(si->flags & SI_IS_IP))
 					rpc->struct_add(ha, "s",
 						"ipaddress", si->address_str.s);
 				rpc->struct_add(ha, "sss",