diff options
author | himselfv <me@boku.ru> | 2019-01-04 16:40:25 +0300 |
---|---|---|
committer | vitalyster <vitalyster@gmail.com> | 2019-01-05 14:55:55 +0300 |
commit | 2bef0cc74251e3e043d4450c54d4794378cf6f21 (patch) | |
tree | 9db6f3d2fa7cbb527d6e8910259a89b1c293f2fd /libtransport | |
parent | ec70e5d3a8fd6037cb73425ebd6fcf42838b12be (diff) |
Images: Added a web_maximgsize option instead of a hardcoded value
Diffstat (limited to 'libtransport')
-rw-r--r-- | libtransport/Config.cpp | 1 |
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.") |