This commit is contained in:
Daylin Morgan 2025-01-29 12:52:32 -06:00
parent e7173e27d6
commit 5f3d2cad26
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -10,7 +10,7 @@ proc activateTunnel(name: string, port: int) =
echo "activating connection to: ", name echo "activating connection to: ", name
if not check(name): if not check(name):
startSsh(name) startSsh(name)
quit execCmd &"""ssh -fNL "{port}:localhost:{port}" {name}""" quit execCmd &"""ssh -fqNL "{port}:localhost:{port}" {name}"""
proc deactivateTunnels(name: string) = proc deactivateTunnels(name: string) =
echo "deactivating connection to: ", name echo "deactivating connection to: ", name