Changeset

1391:b183e78aee91

mod_s2s_auth_dane: Skip dns queries for already authenticated s2sin connections
author Kim Alvefur <zash@zash.se>
date Thu, 24 Apr 2014 18:33:13 +0200
parents 1390:1fcd280c226b
children 1392:d99c10fc4d19
files mod_s2s_auth_dane/mod_s2s_auth_dane.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Thu Apr 24 18:32:25 2014 +0200
+++ b/mod_s2s_auth_dane/mod_s2s_auth_dane.lua	Thu Apr 24 18:33:13 2014 +0200
@@ -111,6 +111,7 @@
 	module:hook("s2s-stream-features", function(event)
 		-- dane_lookup(origin, origin.from_host);
 		local host_session = event.origin;
+		if host_session.type == "s2sin" then return end -- Already authenticated
 		host_session.log("debug", "Pausing connection until DANE lookup is completed");
 		host_session.conn:pause()
 		local function resume()