]> git.koha-community.org Git - koha.git/commit
Bug 13252 Allow for IPv6 formatted addresses in Port definition
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 27 Nov 2014 16:07:23 +0000 (16:07 +0000)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 11 Apr 2015 02:58:28 +0000 (14:58 +1200)
commitbf49a4995ae1a4d4dc95ddecf75cc3b3d08c46e2
tree10e824690788908bb8ada2e09a9568df4d90918c
parent95ea0ac8734b4a9f2d1c2ff088a7611d0d98b659
Bug 13252 Allow for IPv6 formatted addresses in Port definition

The SIP config has allowed you to specify an interface ip as
part of the listeners/service/port attributei
 e. g.  as port="127.0.0.1:6001/tcp"
with IPv6 the equivalent would normally be
   as port="[::1]:5001/tcp"
However in this case incoming connections will get rejected because
Configuration constructs a string without the brackets
This patch makes tests both formats on incoming connections so that
they are accepted as they were previously

In future the best course is not to include a port identifier in the
port definition then if the server has ipv6 it will bind to all
interfaces and accept both IPv4 and IPv6 traffic

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/SIP/Sip/Configuration.pm