Merge branch 'Integration' into stylus3
This commit is contained in:
commit
008beb9444
2 files changed
+11
-10
No files matched your search
@@ -46,16 +46,17 @@ static const float POLL_RATE = 2.0f; // Poll every 2 seconds
|
|||||||
if (_host.localAddress != nil) {
|
if (_host.localAddress != nil) {
|
||||||
[array addObject:_host.localAddress];
|
[array addObject:_host.localAddress];
|
||||||
}
|
}
|
||||||
if(_host.activeAddressPool.count>0){
|
|
||||||
for(NSString* address in _host.activeAddressPool){
|
NSArray *poolSnapshot = [_host.activeAddressPool copy];
|
||||||
if([address containsString:@":"]) break;
|
for (NSString *address in poolSnapshot) {
|
||||||
[array addObject:address];
|
if ([address containsString:@":"]) break;
|
||||||
}
|
[array addObject:address];
|
||||||
for(NSString* address in _host.activeAddressPool){
|
|
||||||
if(![address containsString:@":"]) break;
|
|
||||||
[array addObject:address];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
for (NSString *address in poolSnapshot) {
|
||||||
|
if (![address containsString:@":"]) break;
|
||||||
|
[array addObject:address];
|
||||||
|
}
|
||||||
|
|
||||||
if (_host.address != nil) {
|
if (_host.address != nil) {
|
||||||
[array addObject:_host.address];
|
[array addObject:_host.address];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -604,7 +604,7 @@ static NSMutableSet* hostList;
|
|||||||
Log(LOG_D, @"Long clicked host: %@", host.name);
|
Log(LOG_D, @"Long clicked host: %@", host.name);
|
||||||
NSString* message;
|
NSString* message;
|
||||||
|
|
||||||
NSString* hostAddress = [host.activeAddress componentsSeparatedByString:@":"].firstObject;
|
NSString* hostAddress = [Utils addressPortStringToAddress:host.activeAddress];
|
||||||
|
|
||||||
switch (host.state) {
|
switch (host.state) {
|
||||||
case StateOffline:
|
case StateOffline:
|
||||||
|
|||||||
Reference in new issue
Block a user