mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Fix handling of IPv6 literals with port numbers
This commit is contained in:
1 parent
65b6885c61
commit
5e6b60bae0
1 file changed
+2
-2
@@ -658,8 +658,8 @@ void ComputerManager::stopPollingAsync()
|
||||
|
||||
void ComputerManager::addNewHostManually(QString address)
|
||||
{
|
||||
QUrl url = QUrl::fromUserInput(address);
|
||||
if (url.isValid() && !url.host().isEmpty()) {
|
||||
QUrl url = QUrl::fromUserInput("moonlight://" + address);
|
||||
if (url.isValid() && !url.host().isEmpty() && url.scheme() == "moonlight") {
|
||||
// If there wasn't a port specified, use the default
|
||||
addNewHost(NvAddress(url.host(), url.port(DEFAULT_HTTP_PORT)), false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user