https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36948

--- Comment #17 from Marcel de Rooy <[email protected]> ---
(In reply to David Cook from comment #12)
> Note: There are lots of ways to specify only IPv4 or to turn off IPv6 with
> Net::Server it seems.
> 
> We could set $ENV{'NO_IPV6'} or $ENV{'IPV'}=4. 
> 
> Or we could pass "IPv4" along in the port specification. 
> 
> With that said, I think I still stand by Nick's change. I think it's the
> simplest change to make here. 
> 
> That said, we might consider adding one of the environmental variables, as
> this same issue could pop up again in different ways.

This seems to work best (included v4 in the port spec):
    <service
      port="127.0.0.1:6001/tcp/IPv4"
      transport="RAW"
      protocol="SIP/2.00"
      client_timeout="600"
      timeout="60" />

Log says:
[2024/05/24 07:48:32] [282769] [WARN] 2024/05/24-07:48:32 C4::SIP::SIPServer
(type Net::Server::PreFork) starting! pid(282769) Net::Server::run
/usr/share/perl5/Net/Server.pm (52)
[2024/05/24 07:48:32] [282769] [WARN] 2024/05/24-07:48:32 C4::SIP::SIPServer
(type Net::Server::PreFork) starting! pid(282769) Net::Server::log
/usr/share/perl5/Net/Server.pm (911)
[2024/05/24 07:48:32] [282769] [WARN] Binding to TCP port 6001 on host
127.0.0.1 with IPv4 Net::Server::bind /usr/share/perl5/Net/Server.pm (316)
[2024/05/24 07:48:32] [282769] [WARN] Binding to TCP port 6001 on host
127.0.0.1 with IPv4 Net::Server::log /usr/share/perl5/Net/Server.pm (911)
[2024/05/24 07:48:32] [282769] [WARN] Setting gid to "1000 1000"
Net::Server::post_bind /usr/share/perl5/Net/Server.pm (379)
[2024/05/24 07:48:32] [282769] [WARN] Setting gid to "1000 1000"
Net::Server::log /usr/share/perl5/Net/Server.pm (911)

In some other variants I saw it trying IPv6 still..

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to