Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhimselfv <me@boku.ru>2019-01-04 16:40:25 +0300
committervitalyster <vitalyster@gmail.com>2019-01-05 14:55:55 +0300
commit2bef0cc74251e3e043d4450c54d4794378cf6f21 (patch)
tree9db6f3d2fa7cbb527d6e8910259a89b1c293f2fd /libtransport
parentec70e5d3a8fd6037cb73425ebd6fcf42838b12be (diff)
Images: Added a web_maximgsize option instead of a hardcoded value
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/Config.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtransport/Config.cpp b/libtransport/Config.cpp
index 6622abe4..a3ad8491 100644
--- a/libtransport/Config.cpp
+++ b/libtransport/Config.cpp
@@ -107,6 +107,7 @@ bool Config::load(std::istream &ifs, boost::program_options::options_description
("service.frontend", value<std::string>()->default_value("xmpp"), "")
("service.web_directory", value<std::string>()->default_value(""), "Full path to directory used to save files to which the links are sent to users.")
("service.web_url", value<std::string>()->default_value(""), "URL on which files in web_directory are accessible.")
+ ("service.web_maximgsize", value<int>()->default_value(1000000), "Maximum image size in bytes allowed to be downloaded and stored locally.")
("vhosts.vhost", value<std::vector<std::string> >()->multitoken(), "")
("identity.name", value<std::string>()->default_value("Spectrum 2 Transport"), "Name showed in service discovery.")
("identity.category", value<std::string>()->default_value("gateway"), "Disco#info identity category. 'gateway' by default.")