View | Details | Raw Unified | Return to bug 1787
Collapse All | Expand All

(-)misc.c (-1 / +1 lines)
Lines 857-862 sock_set_v6only(int s) Link Here
857
857
858
	debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);
858
	debug3("%s: set socket %d IPV6_V6ONLY", __func__, s);
859
	if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) == -1)
859
	if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) == -1)
860
		error("setsockopt IPV6_V6ONLY: %s", strerror(errno));
860
		debug("setsockopt IPV6_V6ONLY: %s", strerror(errno));
861
#endif
861
#endif
862
}
862
}
(-)channels.c (-2 / +1 lines)
Lines 2735-2742 channel_setup_fwd_listener(int type, con Link Here
2735
		}
2735
		}
2736
2736
2737
		channel_set_reuseaddr(sock);
2737
		channel_set_reuseaddr(sock);
2738
		if (ai->ai_family == AF_INET6)
2738
		sock_set_v6only(sock);
2739
			sock_set_v6only(sock);
2740
2739
2741
		debug("Local forwarding listening on %s port %s.",
2740
		debug("Local forwarding listening on %s port %s.",
2742
		    ntop, strport);
2741
		    ntop, strport);

Return to bug 1787