|
|
@ -28,9 +28,9 @@ var ( |
|
|
|
test = flag.Bool("test", false, "Test config file only, without launching V2Ray server.") |
|
|
|
test = flag.Bool("test", false, "Test config file only, without launching V2Ray server.") |
|
|
|
format = flag.String("format", "json", "Format of input file.") |
|
|
|
format = flag.String("format", "json", "Format of input file.") |
|
|
|
|
|
|
|
|
|
|
|
/* We have to do this here because Golang's Test will also need to parse flag, before |
|
|
|
/* We have to do this here because Golang's Test will also need to parse flag, before |
|
|
|
main func in this file is run. |
|
|
|
* main func in this file is run. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
_ = func() error { |
|
|
|
_ = func() error { |
|
|
|
|
|
|
|
|
|
|
|
flag.Var(&configFiles, "config", "Config file for V2Ray. Multiple assign is accepted (only json). Latter ones overrides the former ones.") |
|
|
|
flag.Var(&configFiles, "config", "Config file for V2Ray. Multiple assign is accepted (only json). Latter ones overrides the former ones.") |
|
|
|