From d1f276e1950d54bfb8a2b81e456787d8971ca9aa Mon Sep 17 00:00:00 2001 From: Aaron Spiegel Date: Mon, 28 Mar 2011 20:18:48 -0500 Subject: [PATCH] Correct number for CURLOPT_INTERFACE --- lib/typhoeus/easy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/typhoeus/easy.rb b/lib/typhoeus/easy.rb index 778959c3..4ee7d664 100644 --- a/lib/typhoeus/easy.rb +++ b/lib/typhoeus/easy.rb @@ -20,7 +20,7 @@ class Easy # [Only works on unix-style/SIGALRM operating systems. IOW, does # not work on Windows. :CURLOPT_CONNECTTIMEOUT_MS => 156, - :CURLOPT_INTERFACE => 62, + :CURLOPT_INTERFACE => 10000 + 62, :CURLOPT_NOSIGNAL => 99, :CURLOPT_HTTPHEADER => 10023, :CURLOPT_FOLLOWLOCATION => 52, @@ -85,6 +85,7 @@ def headers=(hash) end def interface=(interface) + @interface = interface set_option(OPTION_VALUES[:CURLOPT_INTERFACE], interface) end