Merge pull request #231954 from mac-chaffee/acme-ipv6

nixos/security/acme: Fix listenHTTP bug with IPv6 addresses
This commit is contained in:
Nick Cao 2023-05-15 07:30:57 -06:00 committed by GitHub
commit 1de301aef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" ];
};