mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Always consider a PC to be remote if localIP == remoteIP
This commit is contained in:
parent
03e965d449
commit
2d6c756e70
@ -356,6 +356,12 @@ public class ComputerManagerService extends Service {
|
|||||||
private boolean pollComputer(ComputerDetails details, boolean localFirst) {
|
private boolean pollComputer(ComputerDetails details, boolean localFirst) {
|
||||||
ComputerDetails polledDetails;
|
ComputerDetails polledDetails;
|
||||||
|
|
||||||
|
// If the local address is routable across the Internet,
|
||||||
|
// always consider this PC remote to be conservative
|
||||||
|
if (details.localIp.equals(details.remoteIp)) {
|
||||||
|
localFirst = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (localFirst) {
|
if (localFirst) {
|
||||||
polledDetails = tryPollIp(details, details.localIp);
|
polledDetails = tryPollIp(details, details.localIp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user