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);