diff options
author | Nick Cao <nickcao@nichi.co> | 2023-05-15 07:30:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 07:30:57 -0600 |
commit | 1de301aef34a05774012921e1329e7fbf30f8c22 (patch) | |
tree | c833f63c5fbc85fae0ec4f6eaeb127c557cb83f7 /nixos | |
parent | cc0522d3fd1228f2a2d2335ff21fb8fa4344f6ec (diff) | |
parent | 33b15fdce01f528cba388d1e023f04491c0879b3 (diff) |
Merge pull request #231954 from mac-chaffee/acme-ipv6
nixos/security/acme: Fix listenHTTP bug with IPv6 addresses
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/security/acme/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/acme/default.nix b/nixos/modules/security/acme/default.nix index ea94b54312cfb..8aee71c864d0a 100644 --- a/nixos/modules/security/acme/default.nix +++ b/nixos/modules/security/acme/default.nix @@ -323,7 +323,7 @@ let } fi ''); - } // optionalAttrs (data.listenHTTP != null && toInt (elemAt (splitString ":" data.listenHTTP) 1) < 1024) { + } // optionalAttrs (data.listenHTTP != null && toInt (last (splitString ":" data.listenHTTP)) < 1024) { CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ]; AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ]; }; |