Permalink
Browse files

Merge branch 'master' of https://github.com/sequelpro/sequelpro

  • Loading branch information...
dmoagx committed Jan 26, 2015
2 parents 1deef4e + 36c6eeb commit d7de5dc07fbfa52af7020416bbf42747ed905577
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/SPSSHTunnel.m
@@ -373,10 +373,10 @@ - (void)launchTask:(id) dummy
[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];

0 comments on commit d7de5dc

Please sign in to comment.