mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-21 07:46:48 +00:00
Improve speed and reliability of host detection
This commit is contained in:
1 parent
ae1c83a011
commit
b01d13976b
2 files changed
+65
-19
No files matched your search
@@ -444,8 +444,15 @@ static NSArray* appList;
|
||||
|
||||
// Initialize the non-persistent host state
|
||||
for (Host* host in hostList) {
|
||||
host.online = NO;
|
||||
host.activeAddress = host.address;
|
||||
if (host.activeAddress == nil) {
|
||||
host.activeAddress = host.localAddress;
|
||||
}
|
||||
if (host.activeAddress == nil) {
|
||||
host.activeAddress = host.externalAddress;
|
||||
}
|
||||
if (host.activeAddress == nil) {
|
||||
host.activeAddress = host.address;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user