diff options
author | Max <post@wickenrode.com> | 2015-01-26 01:13:58 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-01-26 01:13:58 +0100 |
commit | d7de5dc07fbfa52af7020416bbf42747ed905577 (patch) | |
tree | 3556f814ef3f876802eb158f696b3cf104fe5e90 | |
parent | 1deef4e36d118412d34b695e54d888394463a9a3 (diff) | |
parent | 36c6eeb3a2fd966a810b241eeaaf00ec45f419b4 (diff) | |
download | sequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.tar.gz sequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.tar.bz2 sequelpro-d7de5dc07fbfa52af7020416bbf42747ed905577.zip |
Merge branch 'master' of https://github.com/sequelpro/sequelpro
-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]; |