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 /backends/networking/sdl_net/localwebserver.h | |
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 'backends/networking/sdl_net/localwebserver.h')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h index 5f5f7ef9fc..c6cf8485c3 100644 --- a/backends/networking/sdl_net/localwebserver.h +++ b/backends/networking/sdl_net/localwebserver.h @@ -60,7 +60,7 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> { TCPsocket _serverSocket; Client _client[MAX_CONNECTIONS]; int _clients; - bool _timerStarted, _stopOnIdle; + bool _timerStarted, _stopOnIdle, _minimalMode; Common::HashMap<Common::String, BaseHandler*> _pathHandlers; BaseHandler *_defaultHandler; IndexPageHandler _indexPageHandler; @@ -90,7 +90,7 @@ public: LocalWebserver(); virtual ~LocalWebserver(); - void start(); + void start(bool useMinimalMode = false); void stop(); void stopOnIdle(); |