Diff for /libelwix/src/net.c between versions 1.8 and 1.9.6.1

version 1.8, 2013/08/12 02:10:44 version 1.9.6.1, 2014/02/10 16:36:08
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2014
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 243  e_gethostbyname(const char *psHost, u_short port, sock Line 243  e_gethostbyname(const char *psHost, u_short port, sock
         if (*psHost != '/') {          if (*psHost != '/') {
                 /* resolver */                  /* resolver */
                 if (!addr->sa.sa_family)                  if (!addr->sa.sa_family)
                        host = gethostbyname(psHost);                        host = gethostbyname2(psHost, !strchr(psHost, ':') ? AF_INET : AF_INET6);
                 else                  else
                         host = gethostbyname2(psHost, addr->sa.sa_family);                          host = gethostbyname2(psHost, addr->sa.sa_family);
                 if (!host) {                  if (!host) {

Removed from v.1.8  
changed lines
  Added in v.1.9.6.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>