summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-18 17:35:31 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-18 17:35:54 +0200
commit83a4ffce0e7bfd43df4511a53d8f3afc408ea276 (patch)
tree0cf40bb9e895fb32ac37093c7271a56d6d7ab9fc /src/backend/taler-merchant-httpd.c
parent109303d884b103f5e64151c9dba8a914df9bcdb6 (diff)
downloadmerchant-83a4ffce0e7bfd43df4511a53d8f3afc408ea276.tar.gz
merchant-83a4ffce0e7bfd43df4511a53d8f3afc408ea276.tar.bz2
merchant-83a4ffce0e7bfd43df4511a53d8f3afc408ea276.zip
only use AI_IDN if supported by platform (fixes #5688)
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 31a1c9d2..77dd7449 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1462,7 +1462,11 @@ run (void *cls,
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
- hints.ai_flags = AI_PASSIVE | AI_IDN;
+ hints.ai_flags = AI_PASSIVE
+#ifdef AI_IDN
+ | AI_IDN
+#endif
+ ;
if (0 !=
(ec = getaddrinfo (bind_to,
port_str,