On systems that support it, supply the AI_ADDRCONFIG flag to getaddrinfo().
This means that we shouldn't try to connect using IPv6 if the local machine doesn't have an IPv6 address itself. This also simplifies the IPv6 code in BX_connect_by_number() a bit. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@203 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -99,6 +99,10 @@ extern char thing_star[4];
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#ifndef AI_ADDRCONFIG
|
||||
#define AI_ADDRCONFIG 0
|
||||
#endif
|
||||
|
||||
#include "bsdglob.h"
|
||||
|
||||
#include "irc_std.h"
|
||||
|
||||
Reference in New Issue
Block a user