Diff

net/server_event.lua @ 2462:2d81cc25b5a6

net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)
author Matthew Wild <mwild1@gmail.com>
date Mon, 18 Jan 2010 18:20:03 +0000
parent 2453:44d4c69155e0
child 2477:a08ba94c2a29
line wrap: on
line diff
--- a/net/server_event.lua	Mon Jan 18 17:14:41 2010 +0000
+++ b/net/server_event.lua	Mon Jan 18 18:20:03 2010 +0000
@@ -415,6 +415,7 @@
 			self:_lock( true, true, false )
 			debug "ssl session delayed until writebuffer is empty..."
 		end
+		self.starttls = false;
 		return true
 	end