mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 02:20:55 +00:00
Use the current HTTP port as the default if ExternalPort doesn't exist
This commit is contained in:
@@ -565,10 +565,10 @@ public class NvHTTP {
|
|||||||
return Integer.parseInt(getXmlString(serverInfo, "ExternalPort", true));
|
return Integer.parseInt(getXmlString(serverInfo, "ExternalPort", true));
|
||||||
} catch (XmlPullParserException e) {
|
} catch (XmlPullParserException e) {
|
||||||
// Expected on non-Sunshine servers
|
// Expected on non-Sunshine servers
|
||||||
return DEFAULT_HTTP_PORT;
|
return baseUrlHttp.port();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return DEFAULT_HTTP_PORT;
|
return baseUrlHttp.port();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user