Replace localhost with 127.0.0.1 to solve GUI related DNS error when not connected to a network

This commit is contained in:
Emil Axelsson
2019-06-04 13:25:57 +02:00
parent 9b1c3efeb2
commit 804361ce22
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ local guiCustomization = asset.require('customization/gui')
-- Select which commit hashes to use for the frontend and backend
local frontendHash = "f6c17563e5fc3b3e16d18b50e8932f258b34a3bc"
local backendHash = "408142f26d3fa3d041399fcf58645874589d5b64"
local backendHash = "84737f9785f12efbb12d2de9d511154c6215fe9c"
local dataProvider = "data.openspaceproject.com/files/webgui"

View File

@@ -165,7 +165,7 @@ void CefWebGuiModule::internalInitialize(const ghoul::Dictionary& configuration)
_url = configuration.value<std::string>(GuiUrlInfo.identifier);
} else {
WebGuiModule* webGuiModule = global::moduleEngine.module<WebGuiModule>();
_url = "http://localhost:" +
_url = "http://127.0.0.1:" +
std::to_string(webGuiModule->port()) + "/#/onscreen";
}