diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.118 2002/01/26 16:44:22 stevesk Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.119 2002/01/27 14:57:46 stevesk Exp $"); |
37 | 37 | ||
38 | #include "ssh.h" | 38 | #include "ssh.h" |
39 | #include "ssh1.h" | 39 | #include "ssh1.h" |
@@ -2021,7 +2021,7 @@ session_setup_x11fwd(Session *s) | |||
2021 | return 0; | 2021 | return 0; |
2022 | } | 2022 | } |
2023 | s->display_number = x11_create_display_inet(options.x11_display_offset, | 2023 | s->display_number = x11_create_display_inet(options.x11_display_offset, |
2024 | options.gateway_ports, s->single_connection); | 2024 | options.x11_use_localhost, s->single_connection); |
2025 | if (s->display_number == -1) { | 2025 | if (s->display_number == -1) { |
2026 | debug("x11_create_display_inet failed."); | 2026 | debug("x11_create_display_inet failed."); |
2027 | return 0; | 2027 | return 0; |
@@ -2035,7 +2035,7 @@ session_setup_x11fwd(Session *s) | |||
2035 | * authorization entry is added with xauth(1). This will be | 2035 | * authorization entry is added with xauth(1). This will be |
2036 | * different than the DISPLAY string for localhost displays. | 2036 | * different than the DISPLAY string for localhost displays. |
2037 | */ | 2037 | */ |
2038 | if (!options.gateway_ports) { | 2038 | if (options.x11_use_localhost) { |
2039 | snprintf(display, sizeof display, "localhost:%d.%d", | 2039 | snprintf(display, sizeof display, "localhost:%d.%d", |
2040 | s->display_number, s->screen); | 2040 | s->display_number, s->screen); |
2041 | snprintf(auth_display, sizeof auth_display, "unix:%d.%d", | 2041 | snprintf(auth_display, sizeof auth_display, "unix:%d.%d", |