mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-27 12:53:25 -04:00
Enable IDN processing (both idnin and idnout) only on tty, disable it when the stdout is not a tty
This commit is contained in:
parent
46dbf96bd9
commit
0e1bf7d017
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ make_empty_lookup(void) {
|
|||
looknew->ttlunits = false;
|
||||
looknew->qr = false;
|
||||
#ifdef HAVE_LIBIDN2
|
||||
looknew->idnin = (getenv("IDN_DISABLE") == NULL);
|
||||
looknew->idnin = isatty(1)?(getenv("IDN_DISABLE") == NULL):false;
|
||||
looknew->idnout = looknew->idnin;
|
||||
#else
|
||||
looknew->idnin = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue