mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Fix handling of IPv6 literals with port numbers
This commit is contained in:
parent
65b6885c61
commit
5e6b60bae0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue