mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 02:57:00 +02:00
fix a crash in DS with missing cert/key
This commit is contained in:
parent
13a906aa20
commit
510e8e89f2
1 changed files with 6 additions and 1 deletions
|
@ -681,7 +681,12 @@ unsigned int DomainServer::countConnectedUsers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl DomainServer::oauthRedirectURL() {
|
QUrl DomainServer::oauthRedirectURL() {
|
||||||
return QString("https://%1:%2/oauth").arg(_hostname).arg(_httpsManager->serverPort());
|
if (_httpsManager) {
|
||||||
|
return QString("http://%1:%2/oauth").arg(_hostname).arg(_httpsManager->serverPort());
|
||||||
|
} else {
|
||||||
|
qWarning() << "Attempting to determine OAuth re-direct URL with no HTTPS server configured.";
|
||||||
|
return QUrl();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString OAUTH_CLIENT_ID_QUERY_KEY = "client_id";
|
const QString OAUTH_CLIENT_ID_QUERY_KEY = "client_id";
|
||||||
|
|
Loading…
Reference in a new issue