From 3e63a4da4bfc0953f6c1919807e5f59ef9628d1a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 29 May 2009 00:24:26 +0000 Subject: - SSH tunnel now correctly uses placeholder/default port numbers --- Source/TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/TableDocument.m') 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) { -- cgit v1.2.3