- if (*parv[4] == ':')
- {
- source_p->sockhost[0] = '0';
- rb_strlcpy(source_p->sockhost + 1, parv[4],
- sizeof(source_p->sockhost) - 1);
- }
- else
- rb_strlcpy(source_p->sockhost, parv[4],
- sizeof(source_p->sockhost));
+ source_p->localClient->ip = addr;
+
+ rb_inet_ntop_sock((struct sockaddr *)&source_p->localClient->ip, source_p->sockhost, sizeof(source_p->sockhost));