mirror of https://github.com/v2ray/v2ray-core
KCP: Fixed: typo in <Fixed transport/config_json.go jsonConfig.KcpConfig, jsonConfig.KcpConfig.AdvancedConfig == nil>
parent
cbb183ec58
commit
7fdf0de06d
|
@ -24,8 +24,8 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||||
this.ConnectionReuse = jsonConfig.ConnectionReuse
|
this.ConnectionReuse = jsonConfig.ConnectionReuse
|
||||||
this.enableKcp = jsonConfig.EnableKcp
|
this.enableKcp = jsonConfig.EnableKcp
|
||||||
this.kcpConfig = jsonConfig.KcpConfig
|
this.kcpConfig = jsonConfig.KcpConfig
|
||||||
if jsonConfig.KcpConfig.AdvancedConfig == nil {
|
if jsonConfig.KcpConfig.AdvancedConfigs == nil {
|
||||||
jsonConfig.KcpConfig.AdvancedConfig = kcpv.DefaultAdvancedConfigs
|
jsonConfig.KcpConfig.AdvancedConfigs = kcpv.DefaultAdvancedConfigs
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue