Skip to content

Instantly share code, notes, and snippets.

View sos4nt's full-sized avatar

Stefan Schüßler sos4nt

View GitHub Profile
Index: Source/SPConnectionController.m
===================================================================
--- Source/SPConnectionController.m (revision 2726)
+++ Source/SPConnectionController.m (working copy)
@@ -326,7 +326,7 @@
[self setSshHost:[[self sshHost] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
// Set up the tunnel details
- sshTunnel = [[SPSSHTunnel alloc] initToHost:[self sshHost] port:([[self sshPort] length]?[[self sshPort] integerValue]:22) login:[self sshUser] tunnellingToPort:([[self port] length]?[[self port] integerValue]:3306) onHost:[self host]];
+ sshTunnel = [[SPSSHTunnel alloc] initToHost:[self sshHost] port:[[self sshPort] integerValue] login:[self sshUser] tunnellingToPort:([[self port] length]?[[self port] integerValue]:3306) onHost:[self host]];