/[svn]/ircd-hybrid/trunk/src/s_bsd.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/s_bsd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9891 by michael, Fri Jan 1 04:43:22 2021 UTC revision 9892 by michael, Sat Jan 16 18:20:59 2021 UTC
# Line 215  add_connection(struct Listener *listener Line 215  add_connection(struct Listener *listener
215                client->ip.ss_len, client->sockhost,                client->ip.ss_len, client->sockhost,
216                sizeof(client->sockhost), NULL, 0, NI_NUMERICHOST);                sizeof(client->sockhost), NULL, 0, NI_NUMERICHOST);
217    
218    if (client->sockhost[0] == ':')    if (client->sockhost[0] == ':' &&
219          client->sockhost[1] == ':')
220    {    {
     client->sockhost[0] = '0';  
221      memmove(client->sockhost + 1, client->sockhost, sizeof(client->sockhost) - 1);      memmove(client->sockhost + 1, client->sockhost, sizeof(client->sockhost) - 1);
222        client->sockhost[0] = '0';
223    }    }
224    
225    strlcpy(client->host, client->sockhost, sizeof(client->host));    strlcpy(client->host, client->sockhost, sizeof(client->host));

Legend:
Removed from v.9891  
changed lines
  Added in v.9892

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28