Skip to content

Commit

Permalink
Fix: Set the default port to 21 if none given.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeqNP committed Mar 17, 2014
1 parent 894d13c commit 172e6b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>7316512E-B6AB-44D7-BCEA-9B89472258DA</string>
<string>1C45E90B-F799-42DC-8831-FA4A4B2119AB</string>
<key>IDESourceControlProjectName</key>
<string>FTPKit</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>871D73CC-FB92-4909-9191-96DA50441FF9</key>
<string>ssh://github.com/themaste/FTPKit.git</string>
<key>2FD5A573-8D63-43F3-8AC6-A05C6A9B05C4</key>
<string>ssh://github.com/PeqNP/FTPKit.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>FTPKit.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>871D73CC-FB92-4909-9191-96DA50441FF9</key>
<key>2FD5A573-8D63-43F3-8AC6-A05C6A9B05C4</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>ssh://github.com/themaste/FTPKit.git</string>
<string>ssh://github.com/PeqNP/FTPKit.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>871D73CC-FB92-4909-9191-96DA50441FF9</string>
<string>2FD5A573-8D63-43F3-8AC6-A05C6A9B05C4</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>871D73CC-FB92-4909-9191-96DA50441FF9</string>
<string>2FD5A573-8D63-43F3-8AC6-A05C6A9B05C4</string>
<key>IDESourceControlWCCName</key>
<string>FTPKit</string>
</dict>
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion FTPKit/FTPCredentials.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ - (id)initWithHost:(NSString *)aHost port:(int)aPort username:(NSString *)aUsern
if (self)
{
self.host = aHost;
self.port = aPort;
self.port = aPort < 1 ? 21 : aPort;
self.username = aUsername;
self.password = aPassword;
}
Expand Down

0 comments on commit 172e6b0

Please sign in to comment.