diff options
Diffstat (limited to 'lang/ruby18/files/patch-lib_resolv-replace.rb')
-rw-r--r-- | lang/ruby18/files/patch-lib_resolv-replace.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/ruby18/files/patch-lib_resolv-replace.rb b/lang/ruby18/files/patch-lib_resolv-replace.rb new file mode 100644 index 000000000000..58e54eb6dcda --- /dev/null +++ b/lang/ruby18/files/patch-lib_resolv-replace.rb @@ -0,0 +1,12 @@ +--- lib/resolv-replace.rb.orig 2008-08-10 14:35:16.000000000 +0400 ++++ lib/resolv-replace.rb 2008-08-10 14:35:40.000000000 +0400 +@@ -23,7 +23,8 @@ + class UDPSocket + alias original_resolv_bind bind + def bind(host, port) +- original_resolv_bind(IPSocket.getaddress(host), port) ++ host = IPSocket.getaddress(host) if host != "" ++ original_resolv_bind(host, port) + end + + alias original_resolv_connect connect |