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…
Add table
Add a link
Reference in a new issue