|
Lines 2366-2372
Link Here
|
| 2366 |
display_number++) { |
2366 |
display_number++) { |
| 2367 |
port = 6000 + display_number; |
2367 |
port = 6000 + display_number; |
| 2368 |
memset(&hints, 0, sizeof(hints)); |
2368 |
memset(&hints, 0, sizeof(hints)); |
| 2369 |
hints.ai_family = IPv4or6; |
2369 |
hints.ai_family = AF_INET; /* Xlib does not support IPv6 */ |
| 2370 |
hints.ai_flags = x11_use_localhost ? 0: AI_PASSIVE; |
2370 |
hints.ai_flags = x11_use_localhost ? 0: AI_PASSIVE; |
| 2371 |
hints.ai_socktype = SOCK_STREAM; |
2371 |
hints.ai_socktype = SOCK_STREAM; |
| 2372 |
snprintf(strport, sizeof strport, "%d", port); |
2372 |
snprintf(strport, sizeof strport, "%d", port); |