优化代码

This commit is contained in:
刘祥超
2022-11-18 17:02:38 +08:00
parent dc0a7b9dae
commit b84035d821

View File

@@ -34,7 +34,7 @@ func (this *DetectDBAction) RunPost(params struct{}) {
for _, pass := range []string{"", "123456", "654321", "Aa_123456"} {
db, err := dbs.NewInstanceFromConfig(&dbs.DBConfig{
Driver: "mysql",
Dsn: username + ":" + pass + "@tcp(" + configutils.QuoteIP(localHost) + ":" + localPort + ")/edges11111",
Dsn: username + ":" + pass + "@tcp(" + configutils.QuoteIP(localHost) + ":" + localPort + ")/edges",
Prefix: "",
})
if err == nil {