From 949e4c1c5931fb4428a93f1c05e9b666a2d608ca Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Mon, 29 Jul 2019 22:45:38 +0300 Subject: [PATCH] Generate 'remote-server-not-found' stanza error for non-IDN domains Fixes #2969 --- src/ejabberd_s2s_out.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl index 57d8a6267..40ece0f7b 100644 --- a/src/ejabberd_s2s_out.erl +++ b/src/ejabberd_s2s_out.erl @@ -367,9 +367,11 @@ mk_bounce_error(Lang, #{stop_reason := Why}) -> xmpp:err_resource_constraint(Reason, Lang); {dns, _} -> xmpp:err_remote_server_not_found(Reason, Lang); - _ -> + {idna, _} -> + xmpp:err_remote_server_not_found(Reason, Lang); + _ -> xmpp:err_remote_server_timeout(Reason, Lang) - end; + end; mk_bounce_error(_Lang, _State) -> %% We should not be here. Probably :) xmpp:err_remote_server_not_found().