Software /
code /
prosody
Comparison
plugins/mod_proxy65.lua @ 2272:9c3564117b24
mod_proxy65: Fix log:module -> module:log :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 01 Dec 2009 20:07:07 +0000 |
parent | 2249:6e0c861dc61f |
child | 2273:b98b29f614ae |
comparison
equal
deleted
inserted
replaced
2271:a6d69f00a509 | 2272:9c3564117b24 |
---|---|
81 session.sha = sha; | 81 session.sha = sha; |
82 module:log("debug", "initiator connected ... "); | 82 module:log("debug", "initiator connected ... "); |
83 end | 83 end |
84 conn:write(string.char(5, 0, 0, 3, sha:len()) .. sha .. string.char(0, 0)); -- VER, REP, RSV, ATYP, BND.ADDR (sha), BND.PORT (2 Byte) | 84 conn:write(string.char(5, 0, 0, 3, sha:len()) .. sha .. string.char(0, 0)); -- VER, REP, RSV, ATYP, BND.ADDR (sha), BND.PORT (2 Byte) |
85 else | 85 else |
86 log:module("warn", "Neither data transfer nor initial connect of a participator of a transfer.") | 86 module:log("warn", "Neither data transfer nor initial connect of a participator of a transfer.") |
87 conn.close(); | 87 conn.close(); |
88 end | 88 end |
89 else | 89 else |
90 if data ~= nil then | 90 if data ~= nil then |
91 module:log("warn", "unknown connection with no authentication data -> closing it"); | 91 module:log("warn", "unknown connection with no authentication data -> closing it"); |