From 6710d0561ae6e15efebd0c718fd43c441d0b0e51 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 13 Nov 2022 11:35:47 -0600 Subject: [PATCH] Use current HTTP port if ExternalPort is not present --- app/backend/nvcomputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/backend/nvcomputer.cpp b/app/backend/nvcomputer.cpp index 1ad659f4..4217dd37 100644 --- a/app/backend/nvcomputer.cpp +++ b/app/backend/nvcomputer.cpp @@ -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");