aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 03:53:07 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 03:53:07 +0000
commit9ad7e92bf95639ba57df4811b44ba714c6f2402f (patch)
tree8faa46ef1cf5651e7f5ba5e428ce1e3dc5ff2491 /net
parentd506a991daf0c2cd0dac67fd95fa3f6297eeeb0d (diff)
downloadprosody-9ad7e92bf95639ba57df4811b44ba714c6f2402f.tar.gz
prosody-9ad7e92bf95639ba57df4811b44ba714c6f2402f.zip
net.server_event: conn.usingssl -> conn._usingssl
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 456db8b8..1a77953d 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -355,7 +355,7 @@ do
end
function interface_mt:ssl()
- return self.usingssl
+ return self._usingssl
end
function interface_mt:type()
@@ -377,14 +377,14 @@ do
local err
if not self._sslctx then -- no ssl available
err = "no ssl context available"
- elseif self.usingssl then -- startssl was already called
+ elseif self._usingssl then -- startssl was already called
err = "ssl already active"
end
if err then
debug( "error:", err )
return nil, err
end
- self.usingssl = true
+ self._usingssl = true
self.startsslcallback = function( ) -- we have to start the handshake outside of a read/write event
self:_start_ssl();
self.eventstarthandshake = nil
@@ -460,7 +460,7 @@ do
interface.eventwrite = false
return -1
else -- can write :)
- if interface.usingssl then -- handle luasec
+ if interface._usingssl then -- handle luasec
if interface.eventreadtimeout then -- we have to read first
local ret = interface.readcallback( ) -- call readcallback
--vdebug( "tried to read in writecallback, result:", ret )