summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBrian Olsen <brian@maven-group.org>2020-10-15 14:37:04 +0200
committerBrian Olsen <brian@maven-group.org>2020-10-15 14:37:04 +0200
commitab94ea66fae3aba48151f0e2243b2317378cd128 (patch)
treebe1d1427717de362f3552e9e27dbdaa619dec9b3 /nixos
parentb073b546ac2b8c3ab0f3135627347febdcbd4c2c (diff)
downloadnixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar.gz
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar.bz2
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar.lz
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar.xz
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.tar.zst
nixpkgs-ab94ea66fae3aba48151f0e2243b2317378cd128.zip
nixos/kresd: Fix unsupported regex
Regex supported by `builtins.match` differ on Linux and Darwin
(see NixOS/Nix#1537) and the empty match group errors on Darwin.
But simply removing it does not change the logic in the module in any
way.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/kresd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix
index ccb34163d5f..bdadc5970e6 100644
--- a/nixos/modules/services/networking/kresd.nix
+++ b/nixos/modules/services/networking/kresd.nix
@@ -10,7 +10,7 @@ let
   mkListen = kind: addr: let
     al_v4 = builtins.match "([0-9.]\+):([0-9]\+)" addr;
     al_v6 = builtins.match "\\[(.\+)]:([0-9]\+)" addr;
-    al_portOnly = builtins.match "()([0-9]\+)" addr;
+    al_portOnly = builtins.match "([0-9]\+)" addr;
     al = findFirst (a: a != null)
       (throw "services.kresd.*: incorrect address specification '${addr}'")
       [ al_v4 al_v6 al_portOnly ];