aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-05-29 00:24:26 +0000
committerrowanbeentje <rowan@beent.je>2009-05-29 00:24:26 +0000
commit3e63a4da4bfc0953f6c1919807e5f59ef9628d1a (patch)
tree261eae6679a5fbb5d5e124abc88c875b5db79b1a /Source
parente46a27b9268d302a0836a1e71d318450916e841e (diff)
downloadsequelpro-3e63a4da4bfc0953f6c1919807e5f59ef9628d1a.tar.gz
sequelpro-3e63a4da4bfc0953f6c1919807e5f59ef9628d1a.tar.bz2
sequelpro-3e63a4da4bfc0953f6c1919807e5f59ef9628d1a.zip
- SSH tunnel now correctly uses placeholder/default port numbers
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 2b98c776..5ed89519 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -331,7 +331,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
[connectProgressStatusText display];
// Set up the tunnel details
- theTunnel = [[SPSSHTunnel alloc] initToHost:[sshHostField stringValue] port:([sshPortField intValue]?[sshPortField intValue]:22) login:[sshUserField stringValue] tunnellingToPort:([portField intValue]?[portField intValue]:3306) onHost:[hostField stringValue]];
+ theTunnel = [[SPSSHTunnel alloc] initToHost:[sshHostField stringValue] port:([[sshPortField stringValue] length]?[sshPortField intValue]:22) login:[sshUserField stringValue] tunnellingToPort:([[portField stringValue] length]?[portField intValue]:3306) onHost:[hostField stringValue]];
// Add keychain or plaintext password as appropriate - note the checks in initiateConnection.
if (connectionSSHKeychainItemName) {