Skip to content

Commit

Permalink
hydra-notify: enable IPv6 support
Browse files Browse the repository at this point in the history
HTTP::Server::PSGI uses the `ipv6` flag to decide between
  `IO::Socket::INET` and `IO::Socket::IP`
  (https://metacpan.org/dist/Plack/source/lib/HTTP/Server/PSGI.pm#L80-84)
and (from IO/Socket/IP.pm):
> C<IO::Socket::IP> - Family-neutral IP socket supporting both IPv4 and IPv6
so setting the `ipv6` flag makes it support both IPv4 and IPv6.

Fixes NixOS#1394
  • Loading branch information
fogti committed Jul 20, 2024
1 parent d798622 commit 5caf7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/script/hydra-notify
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if (defined($promCfg)) {
host => $promCfg->{"listen_address"},
port => $promCfg->{"port"},
timeout => 1,
ipv6 => 1,
);

$server->run($prom->psgi);
Expand Down

0 comments on commit 5caf7b2

Please sign in to comment.