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

@@ -1,5 +1,8 @@
[Changes 1.2c01]
* Use AI_ADDRCONFIG flag to improve server address selection when client
is built for IPv6 but we don't have an IPv6 address. (caf)
* Enable SSL support by default, if OpenSSL is present at build time. (caf)
* Fix leak and potential crash in lame_resolv() using IPv6. (caf, snadge)
@@ -7,8 +10,8 @@
* Apply patch from snadge defining BIND_4_COMPAT on OpenBSD, to allow
/nslookup to build. (caf)
* Fix known problem with IPv6 on FreeBSD and enable IPv6 on all supporting
platforms. Thanks to brabes, snadge and packet. (caf)
* Fix problem connecting to IPv4 when IPv6 enabled on FreeBSD and enable
IPv6 on all supporting platforms. Thanks to brabes, snadge and packet. (caf)
* Improve connect() error handling. (caf)