summaryrefslogtreecommitdiffstats
path: root/src/libserver/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-23 12:05:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-23 12:05:36 +0100
commite4fcd0fcda0d192b068dc28eb317e09dc0eb3a12 (patch)
tree2c8db056f1cb0abd24299a1fb900527727e4a4fa /src/libserver/dns.c
parent9029b54e9f2a3173391e630c8cff5758f2d56321 (diff)
downloadrspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.tar.gz
rspamd-e4fcd0fcda0d192b068dc28eb317e09dc0eb3a12.zip
[Minor] Allow to skip IDN checks in rdns
Diffstat (limited to 'src/libserver/dns.c')
-rw-r--r--src/libserver/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index cbbed4aa8..e5ec9d729 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -884,7 +884,8 @@ rspamd_dns_resolver_init (rspamd_logger_t *logger,
dns_resolver->max_retransmits = 2;
}
- dns_resolver->r = rdns_resolver_new ();
+ /* IDN translation is performed in Rspamd now */
+ dns_resolver->r = rdns_resolver_new (RDNS_RESOLVER_NOIDN);
UErrorCode uc_err = U_ZERO_ERROR;