mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
KCP: Fixed transport/config_json.go jsonConfig.KcpConfig, jsonConfig.KcpConfig.AdvancedConfig == nil
This commit is contained in:
parent
e72a7cb96f
commit
cbb183ec58
@ -23,6 +23,10 @@ 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 = kcpConfig
|
this.kcpConfig = jsonConfig.KcpConfig
|
||||||
|
if jsonConfig.KcpConfig.AdvancedConfig == nil {
|
||||||
|
jsonConfig.KcpConfig.AdvancedConfig = kcpv.DefaultAdvancedConfigs
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user