Generate 'remote-server-not-found' stanza error for non-IDN domains

Fixes #2969
This commit is contained in:
Evgeny Khramtsov 2019-07-29 22:45:38 +03:00
parent d64951c2b2
commit 949e4c1c59
1 changed files with 4 additions and 2 deletions

View File

@ -367,9 +367,11 @@ mk_bounce_error(Lang, #{stop_reason := Why}) ->
xmpp:err_resource_constraint(Reason, Lang); xmpp:err_resource_constraint(Reason, Lang);
{dns, _} -> {dns, _} ->
xmpp:err_remote_server_not_found(Reason, Lang); xmpp:err_remote_server_not_found(Reason, Lang);
_ -> {idna, _} ->
xmpp:err_remote_server_not_found(Reason, Lang);
_ ->
xmpp:err_remote_server_timeout(Reason, Lang) xmpp:err_remote_server_timeout(Reason, Lang)
end; end;
mk_bounce_error(_Lang, _State) -> mk_bounce_error(_Lang, _State) ->
%% We should not be here. Probably :) %% We should not be here. Probably :)
xmpp:err_remote_server_not_found(). xmpp:err_remote_server_not_found().