mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 05:12:36 +08:00
Update ftp.go
421 There are too many connected users, please try later
This commit is contained in:
parent
ecb0cd9e5f
commit
b9e05d65ad
@ -52,6 +52,7 @@ func FtpConn(info *common.HostInfo, user string, pass string) (flag bool, err er
|
||||
Host, Port, Username, Password := info.Host, info.Ports, user, pass
|
||||
conn, err := ftp.DialTimeout(fmt.Sprintf("%v:%v", Host, Port), time.Duration(common.Timeout)*time.Second)
|
||||
if err == nil {
|
||||
defer conn.Quit()
|
||||
err = conn.Login(Username, Password)
|
||||
if err == nil {
|
||||
flag = true
|
||||
|
Loading…
Reference in New Issue
Block a user