vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Tomáš Mráz c12d6b
--- openssh-4.3p2/channels.c.no-v6only	2006-07-17 15:39:31.000000000 +0200
Tomáš Mráz c12d6b
+++ openssh-4.3p2/channels.c	2006-08-08 12:44:51.000000000 +0200
Tomáš Mráz c12d6b
@@ -2794,7 +2794,7 @@
Tomáš Mráz c12d6b
 				}
Tomáš Mráz c12d6b
 			}
Tomáš Mráz c12d6b
 #ifdef IPV6_V6ONLY
Tomáš Mráz c12d6b
-			if (ai->ai_family == AF_INET6) {
Tomáš Mráz c12d6b
+			if (x11_use_localhost && ai->ai_family == AF_INET6) {
Tomáš Mráz c12d6b
 				int on = 1;
Tomáš Mráz c12d6b
 				if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0)
Tomáš Mráz c12d6b
 					error("setsockopt IPV6_V6ONLY: %.100s", strerror(errno));