mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 13:31:55 +00:00
Use the current HTTP port as the default if ExternalPort doesn't exist
This commit is contained in:
1 parent
de54b27013
commit
57f55e6856
1 file changed
+2
-2
@@ -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