diff options
author | Christoph Neukirch <christoph.neukirch@xing.com> | 2015-01-13 19:57:30 +0100 |
---|---|---|
committer | Christoph Neukirch <christoph.neukirch@xing.com> | 2015-01-13 19:57:30 +0100 |
commit | 4e3fc71b8f5c4a1cc53e2ebf6dee1ad9ccfbaf34 (patch) | |
tree | cbc8e5189f96370d88d9f8257fa625741abe98cc /Source/SPSSHTunnel.m | |
parent | f2bb1116a22dcbd680a61637532108d0c8497b99 (diff) | |
download | sequelpro-4e3fc71b8f5c4a1cc53e2ebf6dee1ad9ccfbaf34.tar.gz sequelpro-4e3fc71b8f5c4a1cc53e2ebf6dee1ad9ccfbaf34.tar.bz2 sequelpro-4e3fc71b8f5c4a1cc53e2ebf6dee1ad9ccfbaf34.zip |
Fix an issue with ssh -L forwarding (: is the correct separator)
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r-- | Source/SPSSHTunnel.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m index 1c217986..3b58d331 100644 --- a/Source/SPSSHTunnel.m +++ b/Source/SPSSHTunnel.m @@ -373,10 +373,10 @@ [taskArguments addObject:sshHost]; } if (useHostFallback) { - [taskArguments addObject:[NSString stringWithFormat:@"-L %ld/127.0.0.1/%ld", (long)localPort, (long)remotePort]]; - [taskArguments addObject:[NSString stringWithFormat:@"-L %ld/%@/%ld", (long)localPortFallback, remoteHost, (long)remotePort]]; + [taskArguments addObject:[NSString stringWithFormat:@"-L %ld:127.0.0.1:%ld", (long)localPort, (long)remotePort]]; + [taskArguments addObject:[NSString stringWithFormat:@"-L %ld:%@:%ld", (long)localPortFallback, remoteHost, (long)remotePort]]; } else { - [taskArguments addObject:[NSString stringWithFormat:@"-L %ld/%@/%ld", (long)localPort, remoteHost, (long)remotePort]]; + [taskArguments addObject:[NSString stringWithFormat:@"-L %ld:%@:%ld", (long)localPort, remoteHost, (long)remotePort]]; } [task setArguments:taskArguments]; |