aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-26 01:13:58 +0100
committerMax <post@wickenrode.com>2015-01-26 01:13:58 +0100
commitd7de5dc07fbfa52af7020416bbf42747ed905577 (patch)
tree3556f814ef3f876802eb158f696b3cf104fe5e90 /Source/SPSSHTunnel.m
parent1deef4e36d118412d34b695e54d888394463a9a3 (diff)
parent36c6eeb3a2fd966a810b241eeaaf00ec45f419b4 (diff)
downloadsequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.tar.gz
sequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.tar.bz2
sequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.zip
Merge branch 'master' of https://github.com/sequelpro/sequelpro
Diffstat (limited to 'Source/SPSSHTunnel.m')
-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];