Do not use socket call to print IP address when we do have a cached representation.

This commit is contained in:
Jan Vidar Krey 2009-03-16 12:45:13 +01:00
parent acc697c33a
commit f396902c57

View File

@ -244,7 +244,7 @@ int route_info_message(struct user* u)
else
{
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;
adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR);