From 5ad0ea1aaf1e6a2a5d6b8a65ccd6e7c7f0496ad6 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 24 Apr 2024 20:35:24 +0200 Subject: [PATCH] nixos/netbird: Fix configuration of coturn server --- nixos/modules/services/networking/netbird/coturn.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/netbird/coturn.nix b/nixos/modules/services/networking/netbird/coturn.nix index dd032abb2d75..746d70a07250 100644 --- a/nixos/modules/services/networking/netbird/coturn.nix +++ b/nixos/modules/services/networking/netbird/coturn.nix @@ -148,10 +148,10 @@ in allowedUDPPorts = cfg.openPorts; allowedTCPPorts = cfg.openPorts; - allowedUDPPortRanges = [ + allowedUDPPortRanges = with config.services.coturn; [ { - from = cfg.minPort; - to = cfg.maxPort; + from = min-port; + to = max-port; } ]; };