security/acme: Fix listenHTTP bug with IPv6 addresses

This commit is contained in:
Mac Chaffee 2023-05-14 20:27:52 -04:00
parent afee328192
commit 33b15fdce0
No known key found for this signature in database
GPG Key ID: ACF399B481962420

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