优化 redis 配置方式
This commit is contained in:
@@ -40,7 +40,7 @@ func NewAutoConfig(src string) (KVConfig, error) {
|
||||
if pass == "" {
|
||||
pass = query.Get("password")
|
||||
}
|
||||
db := query.Get("db")
|
||||
db := strings.TrimPrefix(parse.Path, "/")
|
||||
if db == "" {
|
||||
db = "0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user