config test

pull/73/head
v2ray 2016-01-24 12:58:04 +01:00
parent f3ab58ea2e
commit ee72984f78
1 changed files with 6 additions and 0 deletions

View File

@ -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)