mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-10 12:16:24 -05:00
config test
This commit is contained in:
parent
f3ab58ea2e
commit
ee72984f78
@ -25,6 +25,7 @@ var (
|
||||
configFile string
|
||||
logLevel = flag.String("loglevel", "warning", "Level of log info to be printed to console, available value: debug, info, warning, error")
|
||||
version = flag.Bool("version", false, "Show current version of V2Ray.")
|
||||
test = flag.Bool("test", false, "Test config file only, without launching V2Ray server.")
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -79,6 +80,11 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
if *test {
|
||||
fmt.Println("Configuration OK.")
|
||||
return
|
||||
}
|
||||
|
||||
err = vPoint.Start()
|
||||
if err != nil {
|
||||
log.Error("Error starting Point server: ", err)
|
||||
|
Loading…
Reference in New Issue
Block a user