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.
commit2e834f24635317e9b7a2e1fb90718ce3ac443ff9
authorDustin Frisch <fooker@lab.sh>
dateMon 19 Oct 2020, 01:57 (6 years ago)
parent713c368
nixos/modules/services/networking/kresd.nix+1−1
@@ -15,7 +15,7 @@ let
1515 (throw "services.kresd.*: incorrect address specification '${addr}'")
1616 [ al_v4 al_v6 al_portOnly ];
1717 port = last al;
18− addrSpec = if al_portOnly == null then "'${head al}'" else "{'::', '127.0.0.1'}";
18+ addrSpec = if al_portOnly == null then "'${head al}'" else "{'::', '0.0.0.0'}";
1919 in # freebind is set for compatibility with earlier kresd services;
2020 # it could be configurable, for example.
2121 ''