Skip to content

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
clyang committed Oct 18, 2017
1 parent 19b2e6c commit 02f1324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WLConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ - (void)login {
[self sendBytes:"\r" length:1];
}
}
} else if([addr hasPrefix:@"ssh://"] && [addr containsString:@"/"]) {
} else if([addr hasPrefix:@"ssh://"] && [addr rangeOfString:@"/" options:NSBackwardsSearch].location > 5) {
// user wants to autologin with shh
addr = [addr substringFromIndex:[addr rangeOfString:@":"].location+3];
NSString *account = [addr substringFromIndex: [addr rangeOfString:@"/"].location+1];
Expand Down

0 comments on commit 02f1324

Please sign in to comment.