mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Generate 'remote-server-not-found' stanza error for non-IDN domains
Fixes #2969
This commit is contained in:
parent
d64951c2b2
commit
949e4c1c59
@ -367,6 +367,8 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user