|
@@ -0,0 +1,15 @@
|
|
1
|
+diff --git a/src/socket.c b/src/socket.c
|
|
2
|
+index 82c6252..e2feda9 100644
|
|
3
|
+--- a/src/socket.c
|
|
4
|
++++ b/src/socket.c
|
|
5
|
+@@ -241,10 +241,6 @@ socket_open(socket_st * hd, const char *hostname, const char *service,
|
|
6
|
+ /* get server name */
|
|
7
|
+ memset(&hints, 0, sizeof(hints));
|
|
8
|
+
|
|
9
|
+-#ifdef AI_IDN
|
|
10
|
+- hints.ai_flags = AI_IDN|AI_IDN_ALLOW_UNASSIGNED;
|
|
11
|
+-#endif
|
|
12
|
+-
|
|
13
|
+ hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
|
|
14
|
+ if ((err = getaddrinfo(hostname, service, &hints, &res))) {
|
|
15
|
+ fprintf(stderr, "Cannot resolve %s:%s: %s\n", hostname,
|