diff options
author | Alexander Tkachev | 2016-08-01 12:54:54 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 126fe9c8457b95b13b06eb457f7ce445b031e26b (patch) | |
tree | 2d142e24f6010306088a37f68463ebbe96688e14 /gui | |
parent | a1de322c18d9efdf885ea5b760a404237dcdc0a8 (diff) | |
download | scummvm-rg350-126fe9c8457b95b13b06eb457f7ce445b031e26b.tar.gz scummvm-rg350-126fe9c8457b95b13b06eb457f7ce445b031e26b.tar.bz2 scummvm-rg350-126fe9c8457b95b13b06eb457f7ce445b031e26b.zip |
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).
Diffstat (limited to 'gui')
-rw-r--r-- | gui/storagewizarddialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |