From 95c249ff475a9e0c15a4a8fcc9668f8dddb0a6c3 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 5 Feb 2002 12:11:34 +1100 Subject: - stevesk@cvs.openbsd.org 2002/01/27 14:57:46 [channels.c servconf.c servconf.h session.c sshd.8 sshd_config] add X11UseLocalhost; ok markus@ --- session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'session.c') diff --git a/session.c b/session.c index 268d1384e..7e1d0a82b 100644 --- a/session.c +++ b/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.118 2002/01/26 16:44:22 stevesk Exp $"); +RCSID("$OpenBSD: session.c,v 1.119 2002/01/27 14:57:46 stevesk Exp $"); #include "ssh.h" #include "ssh1.h" @@ -2021,7 +2021,7 @@ session_setup_x11fwd(Session *s) return 0; } s->display_number = x11_create_display_inet(options.x11_display_offset, - options.gateway_ports, s->single_connection); + options.x11_use_localhost, s->single_connection); if (s->display_number == -1) { debug("x11_create_display_inet failed."); return 0; @@ -2035,7 +2035,7 @@ session_setup_x11fwd(Session *s) * authorization entry is added with xauth(1). This will be * different than the DISPLAY string for localhost displays. */ - if (!options.gateway_ports) { + if (options.x11_use_localhost) { snprintf(display, sizeof display, "localhost:%d.%d", s->display_number, s->screen); snprintf(auth_display, sizeof auth_display, "unix:%d.%d", -- cgit v1.2.3