Pass the right socket address length to bind() in client connections with

IPv6 enabled.  This fixes an issue reported by packet, where IPv4 conections
don't work on FreeBSD when the client is built with IPv6 support and you
have a local hostname set (with /hostname, -H or IRCHOST).

Also ensure we clear the full size of the 'server' address structure - doesn't
fix a known problem but is a defensive measure.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@181 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-05-13 14:06:53 +00:00
parent 35f0400e1f
commit f035eceb72
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
[Changes 1.2c01]
* Fix known problem with IPv6 on FreeBSD and enable IPv6 on all supporting
platforms. Thanks to brabes and snadge. (caf)
platforms. Thanks to brabes, snadge and packet. (caf)
* Improve connect() error handling. (caf)