aboutsummaryrefslogtreecommitdiff
path: root/etc/forward.lua
diff options
context:
space:
mode:
Diffstat (limited to 'etc/forward.lua')
-rw-r--r--etc/forward.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/forward.lua b/etc/forward.lua
index eac98ae..9073ac4 100644
--- a/etc/forward.lua
+++ b/etc/forward.lua
@@ -17,10 +17,10 @@ local function move(foo, bar)
17 live = data or error == "timeout" 17 live = data or error == "timeout"
18 data = data or partial 18 data = data or partial
19 local result, error = bar:send(data) 19 local result, error = bar:send(data)
20 if not live or not result then 20 if not live or not result then
21 foo:close() 21 foo:close()
22 bar:close() 22 bar:close()
23 break 23 break
24 end 24 end
25 end 25 end
26end 26end
@@ -51,7 +51,7 @@ for i, v in ipairs(arg) do
51 handler:start(function() 51 handler:start(function()
52 move(client, peer) 52 move(client, peer)
53 end) 53 end)
54 -- afte starting new handler, enter in loop sending data from 54 -- afte starting new handler, enter in loop sending data from
55 -- peer to client 55 -- peer to client
56 move(peer, client) 56 move(peer, client)
57 end) 57 end)