nixos/kresd: Listen on IPv4 wildcard, too.

If only a port is specified in listen{Plain,TLS,DoH} option, kresd
will now listen on IPv4 and IPv6 wildcard.
This commit is contained in:
Dustin Frisch 2020-10-19 01:57:42 +02:00
parent 713c368291
commit 2e834f2463
No known key found for this signature in database
GPG key ID: B4C3BF012D9B26BE

View file

@ -15,7 +15,7 @@ let
(throw "services.kresd.*: incorrect address specification '${addr}'")
[ al_v4 al_v6 al_portOnly ];
port = last al;
addrSpec = if al_portOnly == null then "'${head al}'" else "{'::', '127.0.0.1'}";
addrSpec = if al_portOnly == null then "'${head al}'" else "{'::', '0.0.0.0'}";
in # freebind is set for compatibility with earlier kresd services;
# it could be configurable, for example.
''