Permalink
Browse files

0 is not a valid port neither

  • Loading branch information...
1 parent 3923704 commit 6f01197f1acdd2ed0c868243f3dde7635ffe397c Jérôme Lebel committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 iProxyMacSetup/Classes/iProxyMacSetupAppDelegate.m
@@ -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;
}

0 comments on commit 6f01197

Please sign in to comment.