mirror of https://github.com/qwqdanchun/fscan.git
修复一个错误拼写
This commit is contained in:
parent
41ec4489da
commit
66cd740580
|
@ -30,7 +30,7 @@ func PostgresConn(info *common.HostInfo, user string, pass string) (flag bool, e
|
|||
flag = false
|
||||
Host, Port, Username, Password := info.Host, common.PORTList["psql"], user, pass
|
||||
dataSourceName := fmt.Sprintf("postgres://%v:%v@%v:%v/%v?sslmode=%v", Username, Password, Host, Port, "postgres", "disable")
|
||||
db, err := sql.Open("mysql", dataSourceName)
|
||||
db, err := sql.Open("postgres", dataSourceName)
|
||||
if err == nil {
|
||||
db.SetConnMaxLifetime(time.Duration(info.Timeout) * time.Second)
|
||||
defer db.Close()
|
||||
|
|
Loading…
Reference in New Issue