aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorChristoph Neukirch <christoph.neukirch@xing.com>2015-01-13 19:57:30 +0100
committerChristoph Neukirch <christoph.neukirch@xing.com>2015-01-13 19:57:30 +0100
commit4e3fc71b8f5c4a1cc53e2ebf6dee1ad9ccfbaf34 (patch)
treecbc8e5189f96370d88d9f8257fa625741abe98cc /Source
parentf2bb1116a22dcbd680a61637532108d0c8497b99 (diff)
downloadsequelpro-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')
-rw-r--r--Source/SPSSHTunnel.m6
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];