Browse code

corex: Added virtual flag to output of "corex.list_sockets"

Rhys Hanrahan authored on 22/12/2021 11:15:18 • Daniel-Constantin Mierla committed on 07/01/2022 11:27:25
Showing 1 changed files
... ...
@@ -95,10 +95,11 @@ static void corex_rpc_list_sockets(rpc_t* rpc, void* ctx)
95 95
 				}
96 96
 			}
97 97
 
98
-			if(rpc->struct_add(th, "sssss",
98
+			if(rpc->struct_add(th, "ssssss",
99 99
 					"PORT", si->port_no_str.s,
100 100
 					"MCAST", si->flags & SI_IS_MCAST ? "yes" : "no",
101
-					"MHOMED", si->flags & SI_IS_MHOMED? "yes" : "no",
101
+					"MHOMED", si->flags & SI_IS_MHOMED ? "yes" : "no",
102
+					"VIRTUAL", si->flags & SI_IS_VIRTUAL ? "yes" : "no",
102 103
 					"SOCKNAME", si->sockname.s? si->sockname.s : "-",
103 104
 					"ADVERTISE", si->useinfo.name.s?si->useinfo.name.s:"-")<0)
104 105
 			{