Software /
code /
prosody
Changeset
4512:eb97612bf42b
Merge with 0.9
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 25 Feb 2012 17:21:15 +0000 |
parents | 4510:b827401581c5 (current diff) 4511:92597f6223de (diff) |
children | 4518:f2d695d2e31e |
files | core/s2smanager.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Sat Feb 25 02:03:26 2012 +0000 +++ b/core/s2smanager.lua Sat Feb 25 17:21:15 2012 +0000 @@ -512,7 +512,12 @@ (session.log or log)("debug", "certificate chain validation result: valid"); session.cert_chain_status = "valid"; - local host = session.direction == "incoming" and session.from_host or session.to_host + local host; + if session.direction == "incoming" then + host = session.from_host; + else + host = session.to_host; + end -- We'll go ahead and verify the asserted identity if the -- connecting server specified one.