|
Lines 2164-2170
Link Here
|
| 2164 |
*/ |
2164 |
*/ |
| 2165 |
memset(&hints, 0, sizeof(hints)); |
2165 |
memset(&hints, 0, sizeof(hints)); |
| 2166 |
hints.ai_family = IPv4or6; |
2166 |
hints.ai_family = IPv4or6; |
| 2167 |
hints.ai_flags = gateway_ports ? AI_PASSIVE : 0; |
2167 |
hints.ai_flags = (gateway_ports ? AI_PASSIVE : 0) | AI_IDN | AI_CANONIDN; |
| 2168 |
hints.ai_socktype = SOCK_STREAM; |
2168 |
hints.ai_socktype = SOCK_STREAM; |
| 2169 |
snprintf(strport, sizeof strport, "%d", listen_port); |
2169 |
snprintf(strport, sizeof strport, "%d", listen_port); |
| 2170 |
if (getaddrinfo(NULL, strport, &hints, &aitop) != 0) |
2170 |
if (getaddrinfo(NULL, strport, &hints, &aitop) != 0) |
|
Lines 2391-2396
Link Here
|
| 2391 |
memset(&hints, 0, sizeof(hints)); |
2391 |
memset(&hints, 0, sizeof(hints)); |
| 2392 |
hints.ai_family = IPv4or6; |
2392 |
hints.ai_family = IPv4or6; |
| 2393 |
hints.ai_socktype = SOCK_STREAM; |
2393 |
hints.ai_socktype = SOCK_STREAM; |
|
|
2394 |
hints.ai_flags = AI_IDN | AI_CANONIDN; |
| 2394 |
snprintf(strport, sizeof strport, "%d", port); |
2395 |
snprintf(strport, sizeof strport, "%d", port); |
| 2395 |
if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { |
2396 |
if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { |
| 2396 |
error("connect_to %.100s: unknown host (%s)", host, |
2397 |
error("connect_to %.100s: unknown host (%s)", host, |
|
Lines 2496-2502
Link Here
|
| 2496 |
port = 6000 + display_number; |
2497 |
port = 6000 + display_number; |
| 2497 |
memset(&hints, 0, sizeof(hints)); |
2498 |
memset(&hints, 0, sizeof(hints)); |
| 2498 |
hints.ai_family = IPv4or6; |
2499 |
hints.ai_family = IPv4or6; |
| 2499 |
hints.ai_flags = x11_use_localhost ? 0: AI_PASSIVE; |
2500 |
hints.ai_flags = (x11_use_localhost ? 0: AI_PASSIVE) | AI_IDN | AI_CANONIDN; |
| 2500 |
hints.ai_socktype = SOCK_STREAM; |
2501 |
hints.ai_socktype = SOCK_STREAM; |
| 2501 |
snprintf(strport, sizeof strport, "%d", port); |
2502 |
snprintf(strport, sizeof strport, "%d", port); |
| 2502 |
if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) { |
2503 |
if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) { |
|
Lines 2666-2671
Link Here
|
| 2666 |
memset(&hints, 0, sizeof(hints)); |
2667 |
memset(&hints, 0, sizeof(hints)); |
| 2667 |
hints.ai_family = IPv4or6; |
2668 |
hints.ai_family = IPv4or6; |
| 2668 |
hints.ai_socktype = SOCK_STREAM; |
2669 |
hints.ai_socktype = SOCK_STREAM; |
|
|
2670 |
hints.ai_flags = AI_IDN | AI_CANONIDN; |
| 2669 |
snprintf(strport, sizeof strport, "%d", 6000 + display_number); |
2671 |
snprintf(strport, sizeof strport, "%d", 6000 + display_number); |
| 2670 |
if ((gaierr = getaddrinfo(buf, strport, &hints, &aitop)) != 0) { |
2672 |
if ((gaierr = getaddrinfo(buf, strport, &hints, &aitop)) != 0) { |
| 2671 |
error("%.100s: unknown host. (%s)", buf, gai_strerror(gaierr)); |
2673 |
error("%.100s: unknown host. (%s)", buf, gai_strerror(gaierr)); |