diff --git a/app/backend/computermanager.cpp b/app/backend/computermanager.cpp index 535a86f5..9c519d87 100644 --- a/app/backend/computermanager.cpp +++ b/app/backend/computermanager.cpp @@ -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); }