aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-18 18:20:03 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-18 18:20:03 +0000
commitc13e080420cc7cf3c7d6399a023f08f0aa6e9037 (patch)
treec62a2b80b065387b446df4ab8fb9c6becca875b5
parent250664a386d252fffbb2c0674e19ea69055e5546 (diff)
downloadprosody-c13e080420cc7cf3c7d6399a023f08f0aa6e9037.tar.gz
prosody-c13e080420cc7cf3c7d6399a023f08f0aa6e9037.zip
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)
-rw-r--r--net/server_event.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 62c199c6..fd6cbd50 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -415,6 +415,7 @@ do
self:_lock( true, true, false )
debug "ssl session delayed until writebuffer is empty..."
end
+ self.starttls = false;
return true
end