From 804361ce22608993c3324a0798517c5cce967736 Mon Sep 17 00:00:00 2001 From: Emil Axelsson Date: Tue, 4 Jun 2019 13:25:57 +0200 Subject: [PATCH] Replace localhost with 127.0.0.1 to solve GUI related DNS error when not connected to a network --- data/assets/util/webgui.asset | 2 +- modules/cefwebgui/cefwebguimodule.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/assets/util/webgui.asset b/data/assets/util/webgui.asset index acb8c63952..6f32eccd0c 100644 --- a/data/assets/util/webgui.asset +++ b/data/assets/util/webgui.asset @@ -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" diff --git a/modules/cefwebgui/cefwebguimodule.cpp b/modules/cefwebgui/cefwebguimodule.cpp index ada5732fde..ecdbfc46b1 100644 --- a/modules/cefwebgui/cefwebguimodule.cpp +++ b/modules/cefwebgui/cefwebguimodule.cpp @@ -165,7 +165,7 @@ void CefWebGuiModule::internalInitialize(const ghoul::Dictionary& configuration) _url = configuration.value(GuiUrlInfo.identifier); } else { WebGuiModule* webGuiModule = global::moduleEngine.module(); - _url = "http://localhost:" + + _url = "http://127.0.0.1:" + std::to_string(webGuiModule->port()) + "/#/onscreen"; }