|
|
|
|
@ -1299,8 +1299,12 @@ static void ng_stats_stream(bencode_item_t *list, const struct packet_stream *ps
|
|
|
|
|
|
|
|
|
|
dict = bencode_list_add_dictionary(list);
|
|
|
|
|
|
|
|
|
|
if (ps->selected_sfd)
|
|
|
|
|
if (ps->selected_sfd) {
|
|
|
|
|
bencode_dictionary_add_integer(dict, "local port", ps->selected_sfd->socket.local.port);
|
|
|
|
|
bencode_dictionary_add_string_dup(dict, "local address",
|
|
|
|
|
sockaddr_print_buf(&ps->selected_sfd->socket.local.address));
|
|
|
|
|
bencode_dictionary_add_string(dict, "family", ps->selected_sfd->socket.local.address.family->name);
|
|
|
|
|
}
|
|
|
|
|
ng_stats_endpoint(bencode_dictionary_add_dictionary(dict, "endpoint"), &ps->endpoint);
|
|
|
|
|
ng_stats_endpoint(bencode_dictionary_add_dictionary(dict, "advertised endpoint"),
|
|
|
|
|
&ps->advertised_endpoint);
|
|
|
|
|
|