diff options
Diffstat (limited to 'samples/daytimeclnt.lua')
-rw-r--r-- | samples/daytimeclnt.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/daytimeclnt.lua b/samples/daytimeclnt.lua index 5064fff..29abe17 100644 --- a/samples/daytimeclnt.lua +++ b/samples/daytimeclnt.lua | |||
@@ -10,7 +10,7 @@ if arg then | |||
10 | host = arg[1] or host | 10 | host = arg[1] or host |
11 | port = arg[2] or port | 11 | port = arg[2] or port |
12 | end | 12 | end |
13 | host = socket.toip(host) | 13 | host = socket.dns.toip(host) |
14 | udp = socket.udp() | 14 | udp = socket.udp() |
15 | print("Using host '" ..host.. "' and port " ..port.. "...") | 15 | print("Using host '" ..host.. "' and port " ..port.. "...") |
16 | udp:setpeername(host, port) | 16 | udp:setpeername(host, port) |