about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2024-04-27 07:35:02 +0200
committerGitHub <noreply@github.com>2024-04-27 07:35:02 +0200
commit75541131ef121c7ff1d79b2d932f8c754d0a71c4 (patch)
tree4917f9e657cb2eb6a0627fdcafe003caa7ff5602 /nixos
parent64742a250e27ee57d784a5ef3a2360ffda3ab32c (diff)
parent5ad0ea1aaf1e6a2a5d6b8a65ccd6e7c7f0496ad6 (diff)
Merge pull request #306608 from Tom-Hubrecht/netbird-coturn
nixos/netbird: Fix configuration of coturn server
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/netbird/coturn.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/netbird/coturn.nix b/nixos/modules/services/networking/netbird/coturn.nix
index dd032abb2d75e..746d70a07250d 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;
           }
         ];
       };