mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
KCP: Fixed: typo in <Fixed transport/config_json.go jsonConfig.KcpConfig, jsonConfig.KcpConfig.AdvancedConfig == nil>
This commit is contained in:
parent
cbb183ec58
commit
7fdf0de06d
@ -24,8 +24,8 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
this.ConnectionReuse = jsonConfig.ConnectionReuse
|
||||
this.enableKcp = jsonConfig.EnableKcp
|
||||
this.kcpConfig = jsonConfig.KcpConfig
|
||||
if jsonConfig.KcpConfig.AdvancedConfig == nil {
|
||||
jsonConfig.KcpConfig.AdvancedConfig = kcpv.DefaultAdvancedConfigs
|
||||
if jsonConfig.KcpConfig.AdvancedConfigs == nil {
|
||||
jsonConfig.KcpConfig.AdvancedConfigs = kcpv.DefaultAdvancedConfigs
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user