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:
Kevin Easton
2012-06-02 11:38:37 +00:00
parent 64605b326c
commit 252d1bf004
3 changed files with 22 additions and 21 deletions

View File

@@ -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"