fix: use opt.metricsPort.value (#39)

This commit is contained in:
Max 2024-06-05 20:45:19 +02:00 committed by GitHub
parent 7bba1f9f82
commit 64c86d5555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ let
)
);
maybeMetricsPort = mkIf opt.metricsPort.isDefined (toString opt.metricsPort);
maybeMetricsPort = mkIf opt.metricsPort.isDefined (toString opt.metricsPort.value);
listenPorts = map (builtins.match "/.*/(tcp|udp)/([0-9]*).*") cfg.settings.listenAddresses;
in