From d452a35d75cfafa8f5c02b2d44785b6d96ef8ced Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 30 Sep 2018 02:24:56 +0300 Subject: [PATCH] Fix type of "enabled_proxy_id" option. GitOrigin-RevId: 2243cf9007766e91f94dc81e9a965e0a322612a6 --- td/telegram/net/ConnectionCreator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index a5c66e6cf..3db71f0e7 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -595,7 +595,7 @@ void ConnectionCreator::set_active_proxy_id(int32 proxy_id, bool from_binlog) { if (proxy_id == 0) { G()->shared_config().set_option_empty("enabled_proxy_id"); } else { - G()->shared_config().set_option_string("enabled_proxy_id", to_string(proxy_id)); + G()->shared_config().set_option_integer("enabled_proxy_id", proxy_id); } if (!from_binlog) { if (proxy_id == 0) {