diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
commit | c51d4acf1c2a8675a3bb043e799ff4390cef47d6 (patch) | |
tree | 345b71aa70b50c964a58980461e147a260fa6e0b /etc/tftp.lua | |
parent | 3099704affa1fda195eb8f3934f6c1f18bf1f706 (diff) | |
download | luasocket-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.lua | 4 |
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 |