Skip to content

Commit

Permalink
0 is not a valid port neither
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Sep 26, 2010
1 parent 3923704 commit 6f01197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iProxyMacSetup/Classes/iProxyMacSetupAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)_updateAutomatic
NSUInteger ii, count = [proxyServiceList count];

for (ii = 0; ii < count; ii++) {
if ([(NSNetService *)[proxyServiceList objectAtIndex:ii] port] != -1) {
if ([(NSNetService *)[proxyServiceList objectAtIndex:ii] port] != -1 && [(NSNetService *)[proxyServiceList objectAtIndex:ii] port] != 0) {
proxy = [proxyServiceList objectAtIndex:ii];
break;
}
Expand Down

0 comments on commit 6f01197

Please sign in to comment.