update readme, add warning message

This commit is contained in:
yuzuki999
2023-05-22 21:41:03 +08:00
parent 2f400190ff
commit 8b81f71d31
2 changed files with 24 additions and 36 deletions

10
main.go
View File

@@ -21,13 +21,17 @@ var (
)
var (
version = "TempVersion" //use ldflags replace
codename = "V2bX"
intro = "A V2board backend based on Xray-core"
version = "TempVersion" //use ldflags replace
codename = "V2bX"
intro = "A V2board backend based on Xray-core"
warnColor = "\033[0;31m"
)
func showVersion() {
fmt.Printf("%s %s (%s) \n", codename, version, intro)
// Warning
fmt.Printf("%sThis version need V2board version >= 1.7.0.", warnColor)
fmt.Printf("%sThis version changed config file. Please check config file before running.", warnColor)
}
func main() {