mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 01:08:33 +00:00
SplitHTTP server: add ok padding (#3614)
This commit is contained in:
parent
4c82ef8a1b
commit
4b7947cca9
5 changed files with 80 additions and 43 deletions
|
@ -69,6 +69,17 @@ func (c *Config) GetNormalizedScMinPostsIntervalMs() RandRangeConfig {
|
|||
return *c.ScMinPostsIntervalMs
|
||||
}
|
||||
|
||||
func (c *Config) GetNormalizedResponseOkPadding() RandRangeConfig {
|
||||
if c.ResponseOkPadding == nil || c.ResponseOkPadding.To == 0 {
|
||||
return RandRangeConfig{
|
||||
From: 100,
|
||||
To: 1000,
|
||||
}
|
||||
}
|
||||
|
||||
return *c.ResponseOkPadding
|
||||
}
|
||||
|
||||
func init() {
|
||||
common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
|
||||
return new(Config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue