/[svn]/branches/newio/src/listener.c
ViewVC logotype

Diff of /branches/newio/src/listener.c

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

revision 2427 by michael, Sun Jul 28 17:18:24 2013 UTC revision 2428 by michael, Wed Jul 31 15:31:20 2013 UTC
# Line 296  add_listener(int port, const char *vhost Line 296  add_listener(int port, const char *vhost
296      memcpy((struct sockaddr *)&vaddr, res->ai_addr, res->ai_addrlen);      memcpy((struct sockaddr *)&vaddr, res->ai_addr, res->ai_addrlen);
297      vaddr.ss_port = port;      vaddr.ss_port = port;
298      vaddr.ss_len = res->ai_addrlen;      vaddr.ss_len = res->ai_addrlen;
299        vaddr.ss.ss_family = res->ai_family;
300      freeaddrinfo(res);      freeaddrinfo(res);
301    }    }
302    
# Line 332  add_listener(int port, const char *vhost Line 333  add_listener(int port, const char *vhost
333      listener->fd_v6 = -1;      listener->fd_v6 = -1;
334    }    }
335    
336    if ((listener->flags, LISTENER_IPV4) &&    if ((listener->flags & LISTENER_IPV4) &&
337        (v4->sin_addr.s_addr == INADDR_NONE || vaddr.ss.ss_family == AF_INET))        (v4->sin_addr.s_addr == INADDR_NONE || vaddr.ss.ss_family == AF_INET))
338    {    {
339      if (listener->fd_v4 >= 0)      if (listener->fd_v4 >= 0)

Legend:
Removed from v.2427  
changed lines
  Added in v.2428

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