Merge pull request #337 from kebufu/patch-2

Fix FTP bug(Mayby)
This commit is contained in:
IgorTimofeev
2021-04-13 19:01:36 +03:00
committed by GitHub

View File

@@ -113,7 +113,7 @@ local function FTPLogin(socketHandle, user, password)
local success, result = FTPSocketRead(socketHandle)
if success then
if result:match("TYPE okay") then
if result:match("TYPE okay") or result:match("200") then
return true
else
return false, "Authentication failed"