mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 02:53:05 +00:00
Correct reachability when restoring a lost address
This commit is contained in:
parent
84a9845c1d
commit
34a11c9262
@ -620,6 +620,14 @@ public class ComputerManagerService extends Service {
|
|||||||
// Neither IP address match. Let's restore the remote address to be safe.
|
// Neither IP address match. Let's restore the remote address to be safe.
|
||||||
details.remoteAddress = savedRemoteAddress;
|
details.remoteAddress = savedRemoteAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Now update the reachability so the correct address is used
|
||||||
|
if (details.localAddress.equals(initialReachTuple.reachableAddress)) {
|
||||||
|
details.reachability = ComputerDetails.Reachability.LOCAL;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
details.reachability = ComputerDetails.Reachability.REMOTE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user