Changeset

2115:2d377ff72f79

net.server_event: Correct a few instances of .sslctx to ._sslctx
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 03:48:04 +0000
parents 2114:737763dc23b0
children 2116:719f95428522
files net/server_event.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Sun Nov 22 03:44:15 2009 +0000
+++ b/net/server_event.lua	Sun Nov 22 03:48:04 2009 +0000
@@ -180,7 +180,7 @@
 			_ = self.eventwrite and self.eventwrite:close( )
 			self.eventread, self.eventwrite = nil, nil
 			local err
-			self.conn, err = ssl.wrap( self.conn, self.sslctx )
+			self.conn, err = ssl.wrap( self.conn, self._sslctx )
 			if err then
 				self.fatalerror = err
 				self.conn = nil  -- cannot be used anymore
@@ -374,7 +374,7 @@
 	function interface_mt:starttls()
 		debug( "try to start ssl at client id:", self.id )
 		local err
-		if not self.sslctx then  -- no ssl available
+		if not self._sslctx then  -- no ssl available
 			err = "no ssl context available"
 		elseif self.usingssl then  -- startssl was already called
 			err = "ssl already active"