summaryrefslogtreecommitdiff
path: root/hosts/lia/modules
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-12 07:44:25 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-12 07:51:36 +0530
commit733b567a4c83d72b1913fdda51ad1f08fd5c4c61 (patch)
treeb011163376b7ab91ba1d5833bcb1a2fb5637ff6b /hosts/lia/modules
parented3fd9a36f174d8001b1693fe4d0e2761febeb56 (diff)
hosts/lia/sshfwd/mkFwdSrv: listen on ipv6
Diffstat (limited to 'hosts/lia/modules')
-rw-r--r--hosts/lia/modules/sshfwd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/lia/modules/sshfwd.nix b/hosts/lia/modules/sshfwd.nix
index f5f7526..4140660 100644
--- a/hosts/lia/modules/sshfwd.nix
+++ b/hosts/lia/modules/sshfwd.nix
@@ -21,7 +21,7 @@
script = ''
echo -n "Forwarding port ${toString local_port}"
exec ssh -N ${remote_user}@${remote} -p ${toString ssh_port} \
- -R 0.0.0.0:${toString remote_port}:127.0.0.1:${toString local_port} \
+ -R '[::]:${toString remote_port}:127.0.0.1:${toString local_port}' \
-i ${key}
'';
};