mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-05 15:58:46 +00:00
Use current HTTP port if ExternalPort is not present
This commit is contained in:
parent
cae666b834
commit
6710d0561a
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ NvComputer::NvComputer(NvHTTP& http, QString serverInfo)
|
||||||
// to support dynamic HTTP WAN ports without requiring the user to manually enter the port.
|
// to support dynamic HTTP WAN ports without requiring the user to manually enter the port.
|
||||||
QString remotePortStr = NvHTTP::getXmlString(serverInfo, "ExternalPort");
|
QString remotePortStr = NvHTTP::getXmlString(serverInfo, "ExternalPort");
|
||||||
if (remotePortStr.isEmpty() || (this->externalPort = remotePortStr.toUShort()) == 0) {
|
if (remotePortStr.isEmpty() || (this->externalPort = remotePortStr.toUShort()) == 0) {
|
||||||
this->externalPort = DEFAULT_HTTP_PORT;
|
this->externalPort = http.httpPort();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString remoteAddress = NvHTTP::getXmlString(serverInfo, "ExternalIP");
|
QString remoteAddress = NvHTTP::getXmlString(serverInfo, "ExternalIP");
|
||||||
|
|
Loading…
Reference in a new issue