]> andersk Git - openssh.git/commitdiff
- (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed
authorstevesk <stevesk>
Tue, 4 Jun 2002 20:52:19 +0000 (20:52 +0000)
committerstevesk <stevesk>
Tue, 4 Jun 2002 20:52:19 +0000 (20:52 +0000)
   setsockopt from debug to error for now).

ChangeLog
channels.c

index 96f222ba792d33ca286f8e579b07a6cdea028ea0..e03361ef785ebab10ef906275d9f134d158ae837 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20020604
+ - (stevesk) [channels.c] bug #164 patch from YOSHIFUJI Hideaki (changed
+   setsockopt from debug to error for now).
+
 20020527
  - (tim) [configure.ac.orig monitor_fdpass.c] Enahnce msghdr tests to address
    build problem on Irix reported by Dave Love <d.love@dl.ac.uk>. Back out
index 520bff82292345903f6619c6b4d42b9287a8dc53..3ac690135ca3eaa89d1b320bfa4c302dec82a720 100644 (file)
@@ -2374,6 +2374,13 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
                                        continue;
                                }
                        }
+#ifdef IPV6_V6ONLY
+                       if (ai->ai_family == AF_INET6) {
+                               int on = 1;
+                               if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0)
+                                       error("setsockopt IPV6_V6ONLY: %.100s", strerror(errno));
+                       }
+#endif
                        if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
                                debug("bind port %d: %.100s", port, strerror(errno));
                                close(sock);
@@ -2392,7 +2399,12 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
                        if (num_socks == NUM_SOCKS)
                                break;
 #else
-                       break;
+                       if (x11_use_localhost) {
+                               if (num_socks == NUM_SOCKS)
+                                       break;
+                       } else {
+                               break;
+                       }
 #endif
                }
                freeaddrinfo(aitop);
This page took 0.06447 seconds and 5 git commands to generate.