mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 09:26:21 -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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
config := &Config{}
|
jsonConfig := &Config{}
|
||||||
err = json.Unmarshal(rawConfig, config)
|
err = json.Unmarshal(rawConfig, jsonConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failed to load server config: %v", err)
|
log.Error("Failed to load server config: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return config, err
|
return jsonConfig, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user