Merge #156867: nixos/kresd: Fix invalid regular expression
The problem has only been confirmed to occur on *-darwin.
commit64ba84897b6d3340851e3016393eb1bcf2ce1584
authorVladimír Čunát <v@cunat.cz>
dateWed 26 Jan 2022, 16:48 (5 years ago)
parent25655976a96992
nixos/modules/services/networking/kresd.nix+1−1
@@ -9,7 +9,7 @@ let
99 # On Nix level we don't attempt to precisely validate the address specifications.
1010 # The optional IPv6 scope spec comes *after* port, perhaps surprisingly.
1111 mkListen = kind: addr: let
12− al_v4 = builtins.match "([0-9.]+):([0-9]+)()" addr;
12+ al_v4 = builtins.match "([0-9.]+):([0-9]+)($)" addr;
1313 al_v6 = builtins.match "\\[(.+)]:([0-9]+)(%.*|$)" addr;
1414 al_portOnly = builtins.match "([0-9]+)" addr;
1515 al = findFirst (a: a != null)