mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
rename config to jsonConfig to avoid name conflict
This commit is contained in:
parent
37112f737e
commit
0a1f5fe27e
@ -81,12 +81,12 @@ func LoadConfig(file string) (*Config, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
config := &Config{}
|
||||
err = json.Unmarshal(rawConfig, config)
|
||||
jsonConfig := &Config{}
|
||||
err = json.Unmarshal(rawConfig, jsonConfig)
|
||||
if err != nil {
|
||||
log.Error("Failed to load server config: %v", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return config, err
|
||||
return jsonConfig, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user