diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c index 2436e0873..f015a049e 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.162 2002/01/24 21:09:25 stevesk Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.163 2002/01/27 14:57:46 stevesk Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -2379,7 +2379,7 @@ channel_connect_to(const char *host, u_short port) | |||
2379 | * an error occurs. | 2379 | * an error occurs. |
2380 | */ | 2380 | */ |
2381 | int | 2381 | int |
2382 | x11_create_display_inet(int x11_display_offset, int gateway_ports, | 2382 | x11_create_display_inet(int x11_display_offset, int x11_use_localhost, |
2383 | int single_connection) | 2383 | int single_connection) |
2384 | { | 2384 | { |
2385 | Channel *nc = NULL; | 2385 | Channel *nc = NULL; |
@@ -2395,7 +2395,7 @@ x11_create_display_inet(int x11_display_offset, int gateway_ports, | |||
2395 | port = 6000 + display_number; | 2395 | port = 6000 + display_number; |
2396 | memset(&hints, 0, sizeof(hints)); | 2396 | memset(&hints, 0, sizeof(hints)); |
2397 | hints.ai_family = IPv4or6; | 2397 | hints.ai_family = IPv4or6; |
2398 | hints.ai_flags = gateway_ports ? AI_PASSIVE : 0; | 2398 | hints.ai_flags = x11_use_localhost ? 0: AI_PASSIVE; |
2399 | hints.ai_socktype = SOCK_STREAM; | 2399 | hints.ai_socktype = SOCK_STREAM; |
2400 | snprintf(strport, sizeof strport, "%d", port); | 2400 | snprintf(strport, sizeof strport, "%d", port); |
2401 | if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) { | 2401 | if ((gaierr = getaddrinfo(NULL, strport, &hints, &aitop)) != 0) { |