aboutsummaryrefslogtreecommitdiff
path: root/etc/tftp.lua
diff options
context:
space:
mode:
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