Add internal "ton_proxy_address" option.
This commit is contained in:
parent
2d69b77082
commit
6ef62dc097
@ -2046,6 +2046,10 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
G()->set_option_integer("can_preload_weather", get_json_value_bool(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
if (key == "ton_proxy_address") {
|
||||
G()->set_option_string("ton_proxy_address", get_json_value_string(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
|
||||
new_values.push_back(std::move(key_value));
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ class ConfigManager final : public NetQueryCallback {
|
||||
|
||||
private:
|
||||
struct AppConfig {
|
||||
static constexpr int32 CURRENT_VERSION = 53;
|
||||
static constexpr int32 CURRENT_VERSION = 55;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
@ -452,6 +452,7 @@ bool OptionManager::is_internal_option(Slice name) {
|
||||
"story_caption_length_limit_premium",
|
||||
"story_expiring_limit_default",
|
||||
"story_expiring_limit_premium",
|
||||
"ton_proxy_address",
|
||||
"upload_premium_speedup_notify_period",
|
||||
"video_note_size_max",
|
||||
"weather_bot_username",
|
||||
|
Loading…
Reference in New Issue
Block a user