Do not use socket call to print IP address when we do have a cached representation.
This commit is contained in:
parent
acc697c33a
commit
f396902c57
@ -244,7 +244,7 @@ int route_info_message(struct user* u)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct adc_message* cmd = adc_msg_copy(u->info);
|
struct adc_message* cmd = adc_msg_copy(u->info);
|
||||||
const char* address = (char*) net_get_peer_address(u->sd);
|
const char* address = ip_convert_to_string(&u->ipaddr);
|
||||||
struct user* user = 0;
|
struct user* user = 0;
|
||||||
|
|
||||||
adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR);
|
adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR);
|
||||||
|
Loading…
Reference in New Issue
Block a user