about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTom Hubrecht <tom@hubrecht.ovh>2024-04-24 20:35:24 +0200
committerTom Hubrecht <tom@hubrecht.ovh>2024-04-24 20:35:32 +0200
commit5ad0ea1aaf1e6a2a5d6b8a65ccd6e7c7f0496ad6 (patch)
treea3a59f10e724fc9d79ecba39112a909936cd5aff
parent47c8f08ecee08f216fd8c1dad7c405d04f30bf7c (diff)
nixos/netbird: Fix configuration of coturn server
-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;
           }
         ];
       };