ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/server.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/server.c (file contents):
Revision 4341 by michael, Sat Aug 2 16:53:48 2014 UTC vs.
Revision 4414 by michael, Thu Aug 7 14:06:08 2014 UTC

# Line 368 | Line 368 | check_server(const char *name, struct Cl
368    if (server_conf)
369    {
370      struct sockaddr_in *v4;
371 #ifdef IPV6
371      struct sockaddr_in6 *v6;
372 < #endif
372 >
373      switch (server_conf->aftype)
374      {
376 #ifdef IPV6
375        case AF_INET6:
376          v6 = (struct sockaddr_in6 *)&server_conf->addr;
377  
378          if (IN6_IS_ADDR_UNSPECIFIED(&v6->sin6_addr))
379            memcpy(&server_conf->addr, &client_p->localClient->ip, sizeof(struct irc_ssaddr));
380          break;
383 #endif
381        case AF_INET:
382          v4 = (struct sockaddr_in *)&server_conf->addr;
383  
# Line 707 | Line 704 | serv_connect(struct MaskItem *conf, stru
704                           NULL, 0, serv_connect_callback, client_p, conf->aftype,
705                           CONNECTTIMEOUT);
706        break;
710 #ifdef IPV6
707      case AF_INET6:
708        {
709          struct irc_ssaddr ipn;
# Line 746 | Line 742 | serv_connect(struct MaskItem *conf, stru
742                             NULL, 0, serv_connect_callback, client_p,
743                             conf->aftype, CONNECTTIMEOUT);
744        }
749 #endif
745    }
746 +
747    return 1;
748   }
749  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)