mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Use current HTTP port if ExternalPort is not present
This commit is contained in:
parent
cae666b834
commit
6710d0561a
@ -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.
|
||||
QString remotePortStr = NvHTTP::getXmlString(serverInfo, "ExternalPort");
|
||||
if (remotePortStr.isEmpty() || (this->externalPort = remotePortStr.toUShort()) == 0) {
|
||||
this->externalPort = DEFAULT_HTTP_PORT;
|
||||
this->externalPort = http.httpPort();
|
||||
}
|
||||
|
||||
QString remoteAddress = NvHTTP::getXmlString(serverInfo, "ExternalIP");
|
||||
|
Loading…
x
Reference in New Issue
Block a user