Skip to content

Commit

Permalink
Correct number for CURLOPT_INTERFACE
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegela committed Mar 29, 2011
1 parent 5cb3042 commit d1f276e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/typhoeus/easy.rb
Expand Up @@ -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,
Expand Down Expand Up @@ -85,6 +85,7 @@ def headers=(hash)
end

def interface=(interface)
@interface = interface
set_option(OPTION_VALUES[:CURLOPT_INTERFACE], interface)
end

Expand Down

0 comments on commit d1f276e

Please sign in to comment.