mirror of
https://github.com/telemt/telemt.git
synced 2026-10-08 02:15:59 +03:00
Harden masking fallback and frame readers after flow sync
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -1940,6 +1940,13 @@ impl ProxyConfig {
|
||||
));
|
||||
}
|
||||
|
||||
if config.server.listen_backlog == 0 || config.server.listen_backlog > i32::MAX as u32 {
|
||||
return Err(ProxyError::Config(format!(
|
||||
"server.listen_backlog must be within [1, {}]",
|
||||
i32::MAX
|
||||
)));
|
||||
}
|
||||
|
||||
config
|
||||
.server
|
||||
.client_mss_value()
|
||||
|
||||
Reference in New Issue
Block a user