summary refs log tree commit diff
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-01-07 17:54:01 +0100
committerAstro <astro@spaceboyz.net>2022-01-07 17:54:01 +0100
commit422c5a5db556511c2b32fcea552c5a74bea980e3 (patch)
treea794d6fd7731c36b81f82dcd66008d9504945b86
parent398051479349f912bc431f31b72195e80a41e077 (diff)
downloadnixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar.gz
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar.bz2
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar.lz
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar.xz
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.tar.zst
nixpkgs-422c5a5db556511c2b32fcea552c5a74bea980e3.zip
stunnel: allow servers to connect to other hosts
-rw-r--r--nixos/modules/services/networking/stunnel.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/stunnel.nix b/nixos/modules/services/networking/stunnel.nix
index 70d0a7d3c12..df4908a0fff 100644
--- a/nixos/modules/services/networking/stunnel.nix
+++ b/nixos/modules/services/networking/stunnel.nix
@@ -25,8 +25,8 @@ let
       };
 
       connect = mkOption {
-        type = types.int;
-        description = "To which port the decrypted connection should be forwarded.";
+        type = types.either types.str types.int;
+        description = "Port or IP:Port to which the decrypted connection should be forwarded.";
       };
 
       cert = mkOption {