]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 28 Dec 2014 23:46:37 +0000 (20:46 -0300)
commita5c9947f4305b4a214741ff50345f486232dff56
tree335eca2887ef1269d7d811914db8460e7302d00d
parent049bd2da2312b26d0a63adecdc8331e48e3a0efd
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: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/SIP/SIPServer.pm