From 126fe9c8457b95b13b06eb457f7ce445b031e26b Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 1 Aug 2016 12:54:54 +0600 Subject: CLOUD: Add "minimal mode" in LocalWebserver StorageWizardDialog now runs LocalWebserver in "minimal mode" for security reasons. In this mode server uses only those handlers which state to support it. There are two handlers which support minimal mode: IndexPageHandler (which handles `code` requests needed by StorageWizardDialog) and ResourceHandler (which provides inner resources like `style.css` or `logo.png` from `wwwroot.zip` archive). --- gui/storagewizarddialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp index dd1a3aae37..60f31d1e38 100644 --- a/gui/storagewizarddialog.cpp +++ b/gui/storagewizarddialog.cpp @@ -132,7 +132,7 @@ void StorageWizardDialog::open() { #ifdef USE_SDL_NET if (Cloud::CloudManager::couldUseLocalServer()) { _stopServerOnClose = !LocalServer.isRunning(); - LocalServer.start(); + LocalServer.start(true); // using "minimal mode" (no "/files", "/download", etc available) LocalServer.indexPageHandler().setTarget(this); } #endif -- cgit v1.2.3