aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/dict.lua2
-rw-r--r--etc/tftp.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/dict.lua b/etc/dict.lua
index 9926538..933c1c8 100644
--- a/etc/dict.lua
+++ b/etc/dict.lua
@@ -32,7 +32,7 @@ end
32function dict_open() 32function dict_open()
33 local sock, err = socket.connect("dict.org", 2628) 33 local sock, err = socket.connect("dict.org", 2628)
34 if not sock then return nil, err end 34 if not sock then return nil, err end
35 sock:timeout(10) 35 sock:settimeout(10)
36 local code, par = get_status(sock, 220) 36 local code, par = get_status(sock, 220)
37 if code then return nil, code end 37 if code then return nil, code end
38 return sock 38 return sock
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