mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-10 02:08: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)
|
void ComputerManager::addNewHostManually(QString address)
|
||||||
{
|
{
|
||||||
QUrl url = QUrl::fromUserInput(address);
|
QUrl url = QUrl::fromUserInput("moonlight://" + address);
|
||||||
if (url.isValid() && !url.host().isEmpty()) {
|
if (url.isValid() && !url.host().isEmpty() && url.scheme() == "moonlight") {
|
||||||
// If there wasn't a port specified, use the default
|
// If there wasn't a port specified, use the default
|
||||||
addNewHost(NvAddress(url.host(), url.port(DEFAULT_HTTP_PORT)), false);
|
addNewHost(NvAddress(url.host(), url.port(DEFAULT_HTTP_PORT)), false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue