Allow random-padding connections to server.
GitOrigin-RevId: ebbcd7074837f4d51ec31445a9e8c820472afeee
This commit is contained in:
parent
e0dd56ce8c
commit
45d5c6c626
@ -443,6 +443,8 @@ class ConfigRecoverer : public Actor {
|
||||
}
|
||||
}
|
||||
VLOG(config_recoverer) << "Got SimpleConfig " << simple_config_;
|
||||
} else {
|
||||
VLOG(config_recoverer) << "Config has expired at " << config->expires_;
|
||||
}
|
||||
|
||||
simple_config_expire_at_ = get_config_expire_time();
|
||||
|
@ -69,7 +69,7 @@ class DcOption {
|
||||
}
|
||||
if (!option.secret_.empty()) {
|
||||
flags_ |= Flags::HasSecret;
|
||||
if (option.secret_.size() != 16u) {
|
||||
if (option.secret_.size() != 16u && option.secret_.size() != 17u) {
|
||||
return;
|
||||
}
|
||||
secret_ = option.secret_.as_slice().str();
|
||||
@ -86,7 +86,7 @@ class DcOption {
|
||||
}
|
||||
case telegram_api::ipPortSecret::ID: {
|
||||
auto &ip_port = static_cast<const telegram_api::ipPortSecret &>(ip_port_ref);
|
||||
if (ip_port.secret_.size() != 16u) {
|
||||
if (ip_port.secret_.size() != 16u && ip_port.secret_.size() != 17u) {
|
||||
return;
|
||||
}
|
||||
flags_ |= Flags::HasSecret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user