mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
fixed accidental global in ftp.lua
This commit is contained in:
parent
76ed24fe8a
commit
59869b8bf6
@ -268,7 +268,7 @@ _M.command = socket.protect(function(cmdt)
|
|||||||
cmdt = override(cmdt)
|
cmdt = override(cmdt)
|
||||||
socket.try(cmdt.host, "missing hostname")
|
socket.try(cmdt.host, "missing hostname")
|
||||||
socket.try(cmdt.command, "missing command")
|
socket.try(cmdt.command, "missing command")
|
||||||
local f = open(cmdt.host, cmdt.port, cmdt.create)
|
local f = _M.open(cmdt.host, cmdt.port, cmdt.create)
|
||||||
f:greet()
|
f:greet()
|
||||||
f:login(cmdt.user, cmdt.password)
|
f:login(cmdt.user, cmdt.password)
|
||||||
f.try(f.tp:command(cmdt.command, cmdt.argument))
|
f.try(f.tp:command(cmdt.command, cmdt.argument))
|
||||||
|
Loading…
Reference in New Issue
Block a user