Skip to content

Commit 71d4965

Browse files
authored
bug(cmd/server/main.go): fix listen always use :5379 (#78)
1 parent af999e7 commit 71d4965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/server/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ var (
3333
)
3434

3535
func init() {
36-
flag.StringVar(&listen, "listen", ":5379", "server listen address")
36+
flag.StringVar(&listen, "listen", "", "server listen address")
3737
flag.StringVar(&backend, "backend", "", "tikv storage backend address")
3838
flag.IntVar(&txnRetry, "retry", 5, "transaction retry time when commit failed")
3939
flag.StringVar(&conf, "conf", "", "config file")
4040
flag.StringVar(&loglevel, "loglevel", "info", "loglevel output, format:info/debug/warn")
4141
flag.StringVar(&auth, "auth", "", "connection authentication")
42-
flag.BoolVar(&debug, "debug", false, "run tidis server in debug mode")
42+
flag.BoolVar(&debug, "debug", false, "run tidis server in debug mode")
4343
}
4444

4545
func setLogLevel(loglevel string) {

0 commit comments

Comments
 (0)