mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Add /servatrice to websocket URL to help out reverse proxies. (#3551)
Remove unused define Use websocket port from default servers if given.
This commit is contained in:
parent
544c66edde
commit
c1d25bf58b
3 changed files with 5 additions and 3 deletions
|
|
@ -71,6 +71,10 @@ void HandlePublicServers::updateServerINISettings(QMap<QString, QVariant> jsonMa
|
|||
QString serverPort = serverMap["port"].toString();
|
||||
QString serverSite = serverMap["site"].toString();
|
||||
|
||||
if (serverMap.contains("websocketPort")) {
|
||||
serverPort = serverMap["websocketPort"].toString();
|
||||
}
|
||||
|
||||
bool serverFound = false;
|
||||
for (const auto &iter : savedHostList) {
|
||||
// If the URL/IP matches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue