aboutsummaryrefslogtreecommitdiff
path: root/etc/tftp.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-08-16 00:06:04 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-08-16 00:06:04 +0000
commitc51d4acf1c2a8675a3bb043e799ff4390cef47d6 (patch)
tree345b71aa70b50c964a58980461e147a260fa6e0b /etc/tftp.lua
parent3099704affa1fda195eb8f3934f6c1f18bf1f706 (diff)
downloadluasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.gz
luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.bz2
luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.zip
Adjusted a few inconsistencies with the manual.
Diffstat (limited to 'etc/tftp.lua')
-rw-r--r--etc/tftp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/tftp.lua b/etc/tftp.lua
index d1b5594..4113034 100644
--- a/etc/tftp.lua
+++ b/etc/tftp.lua
@@ -82,8 +82,8 @@ function Public.get(url)
82 local udp, err = socket.udp() 82 local udp, err = socket.udp()
83 if not udp then return nil, err end 83 if not udp then return nil, err end
84 -- convert from name to ip if needed 84 -- convert from name to ip if needed
85 parsed.host = socket.toip(parsed.host) 85 parsed.host = socket.dns.toip(parsed.host)
86 udp:timeout(1) 86 udp:settimeout(1)
87 -- first packet gives data host/port to be used for data transfers 87 -- first packet gives data host/port to be used for data transfers
88 retries = 0 88 retries = 0
89 repeat 89 repeat