mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
cleanup shell/point/config
This commit is contained in:
1 parent
e1c58fae2b
commit
8bee0c4a7b
18 files changed
+341
-37
No files matched your search
@@ -12,7 +12,7 @@ import (
|
||||
_ "github.com/v2ray/v2ray-core/app/router/rules/config/json"
|
||||
"github.com/v2ray/v2ray-core/common/log"
|
||||
"github.com/v2ray/v2ray-core/shell/point"
|
||||
jsonconf "github.com/v2ray/v2ray-core/shell/point/config/json"
|
||||
pointjson "github.com/v2ray/v2ray-core/shell/point/json"
|
||||
|
||||
// The following are neccesary as they register handlers in their init functions.
|
||||
_ "github.com/v2ray/v2ray-core/proxy/blackhole"
|
||||
@@ -69,7 +69,7 @@ func main() {
|
||||
log.Error("Config file is not set.")
|
||||
return
|
||||
}
|
||||
config, err := jsonconf.LoadConfig(configFile)
|
||||
config, err := pointjson.LoadConfig(configFile)
|
||||
if err != nil {
|
||||
log.Error("Failed to read config file (%s): %v", configFile, err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user