forked from DGNum/liminix
recvfrom(-1) is not the same as recvfrom()
This commit is contained in:
parent
f98b9c5c97
commit
2388e4ca24
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ function tftp:listen(rrq_generator_callback, wrq_generator_callback, hosts, port
|
|||
If the request is invalid, responds to the client with error and returns `nil`
|
||||
otherwise returns the parsed request.
|
||||
]]
|
||||
local msg, host, port = socket:recvfrom(-1)
|
||||
local msg, host, port = socket:recvfrom()
|
||||
if msg ~= false then
|
||||
local okay, xRQ = pcall(self.parse_XRQ, msg)
|
||||
if not okay then
|
||||
|
|
Loading…
Reference in a new issue