2013/3/11 mrkn (Kenta Murata) <muraken / gmail.com>:
>
> Issue #8054 has been updated by mrkn (Kenta Murata).
>
>
> 以下のような修正で正しく動いてるようです:
>
> diff --git a/lib/resolv-replace.rb b/lib/resolv-replace.rb
> index ff34f90..374c81a 100644
> --- a/lib/resolv-replace.rb
> +++ b/lib/resolv-replace.rb
> @@ -18,9 +18,9 @@ class TCPSocket < IPSocket
>    # :stopdoc:
>    alias original_resolv_initialize initialize
>    # :startdoc:
> -  def initialize(host, serv, *rest)
> -    rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty?
> -    original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
> +  def initialize(host, serv, local_host=nil, local_serv=nil)
> +    local_host = IPSocket.getaddress(local_host) if local_host
> +    original_resolv_initialize(IPSocket.getaddress(host), serv, local_host, local_serv)
>    end
>  end

引数の数を変えるのもなんなので、r39725 という感じで。
-- 
[田中 哲][たなか あきら][Tanaka Akira]