]> git.koha-community.org Git - koha.git/commit
Bug 13252 - SIP2 server should accept IPv6 connections
authorBenjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Thu, 13 Nov 2014 19:34:25 +0000 (20:34 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 11 Apr 2015 02:58:06 +0000 (14:58 +1200)
commit95ea0ac8734b4a9f2d1c2ff088a7611d0d98b659
tree28e7d25ebee62e5c243d903816bb59c9ce5ef0c9
parent1d153828219580b9850710aa0ce2bfd5e37e15c2
Bug 13252 - SIP2 server should accept IPv6 connections

This small patch adds a check on the SIP2 socket connection if it is
IPv6 and resolves socket address accordingly.

Any newer Debian distro would probably default to IPv6 so it would
eventually affect all SIP servers.

Tests against running SIP server on an IPv6 box:

http://wiki.koha-community.org/wiki/Koha_SIP2_server_setup#Testing_with_Telnet

before patch:
  disconnects immediately. Log output:
  Bad arg length for Socket::unpack_sockaddr_in, length is 28, should be 16

after patch:
  operates normally

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/SIP/SIPServer.pm