mod_s2s_auth_dane: Disable now redundant validation done in trunk
Outgoing connections can now be validated natively in trunk since
a38f9e09ca31 so we only need to check incoming connections.
local disable_tls_ports = module:get_option_set("disable_tls_ports", {});
module:hook("stream-features", function (event)
if disable_tls_ports:contains(event.origin.conn:serverport()) then
module:log("error", "Disabling TLS for client on port %d", event.origin.conn:serverport());
event.origin.conn.starttls = false;
end
end, 1000);