From f396902c5793cb2bedc3f1681d7f49a6fa9e7025 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 16 Mar 2009 12:45:13 +0100 Subject: [PATCH] Do not use socket call to print IP address when we do have a cached representation. --- src/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/route.c b/src/route.c index 6777707..ac0bfe6 100644 --- a/src/route.c +++ b/src/route.c @@ -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);