From 7fdf0de06d703139c11781c96bf11d3b165f8561 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sun, 12 Jun 2016 14:12:48 +0800 Subject: [PATCH] KCP: Fixed: typo in --- transport/config_json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/config_json.go b/transport/config_json.go index b2d98a1e0..8f9007019 100644 --- a/transport/config_json.go +++ b/transport/config_json.go @@ -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