File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ Fri May 20 23:23:45 2011 NAKAMURA Usaku <usa@ruby-lang.org>
2
+
3
+ * ext/socket/socket.c (make_addrinfo): skip IPv6 addresses when ruby
4
+ doesn't support IPv6 but system supports it.
5
+ [ruby-dev:42944] (#4230)
6
+
1
7
Fri May 20 23:10:07 2011 NAKAMURA Usaku <usa@ruby-lang.org>
2
8
3
9
* win32/README.win32: note to need NT based OS to build ruby.
Original file line number Diff line number Diff line change @@ -3218,6 +3218,10 @@ make_addrinfo(res0)
3218
3218
}
3219
3219
base = rb_ary_new ();
3220
3220
for (res = res0 ; res ; res = res -> ai_next ) {
3221
+ #if defined(AF_INET6 ) && !defined(INET6 ) /* workaround for Windows */
3222
+ if (res -> ai_addr -> sa_family == AF_INET6 )
3223
+ continue ;
3224
+ #endif
3221
3225
ary = ipaddr (res -> ai_addr );
3222
3226
rb_ary_push (ary , INT2FIX (res -> ai_family ));
3223
3227
rb_ary_push (ary , INT2FIX (res -> ai_socktype ));
You can’t perform that action at this time.
0 commit comments