Skip to content

Commit

Permalink
vmessconv add switches
Browse files Browse the repository at this point in the history
  • Loading branch information
vcptr committed Jan 13, 2020
1 parent 203b996 commit 5127351
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cmd/vmessconv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ var (
)

func main() {
showN := flag.Bool("n", false, "show v2rayN/NG format")
showRK := flag.Bool("r", false, "show shadowrocket format")
showQ := flag.Bool("q", false, "show Quantumult format")
flag.Parse()
var link string
if flag.NArg() == 0 {
Expand All @@ -31,7 +34,14 @@ func main() {
log.Fatalln(err)
}
fmt.Println("VmessConvert:", MAINVER)
fmt.Println("V2rayN:", lk.LinkStr("ng"))
fmt.Println("ShadowRocket:", lk.LinkStr("rk"))
fmt.Println("Quantumult:", lk.LinkStr("quan"))

if *showN {
fmt.Println("V2rayN:", lk.LinkStr("ng"))
}
if *showRK {
fmt.Println("ShadowRocket:", lk.LinkStr("rk"))
}
if *showQ {
fmt.Println("Quantumult:", lk.LinkStr("quan"))
}
}

0 comments on commit 5127351

Please sign in to comment.