Reget config after disabling proxy.
GitOrigin-RevId: 07a2cb6c1ff95a8464c377855046074d5a1c5b7d
This commit is contained in:
parent
3f2e269162
commit
0e39e01cc1
@ -413,6 +413,7 @@ void ConnectionCreator::set_active_proxy_id(int32 proxy_id, bool from_binlog) {
|
||||
if (!from_binlog) {
|
||||
if (proxy_id == 0) {
|
||||
G()->td_db()->get_binlog_pmc()->erase("proxy_active_id");
|
||||
send_closure(G()->config_manager(), &ConfigManager::request_config);
|
||||
} else {
|
||||
G()->td_db()->get_binlog_pmc()->set("proxy_active_id", to_string(proxy_id));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user