Return to LWPReq.pm CVS log | Up to [LON-CAPA] / loncom |
version 1.3, 2018/09/20 14:17:01 | version 1.4, 2018/09/20 18:43:24 |
---|---|
Line 175 sub makerequest { | Line 175 sub makerequest { |
if (LWP::UserAgent->VERSION >= 5.834) { | if (LWP::UserAgent->VERSION >= 5.834) { |
$ua->local_address('127.0.0.1'); | $ua->local_address('127.0.0.1'); |
} else { | } else { |
require LWP::Protocol::http; | |
local @LWP::Protocol::http::EXTRA_SOCK_OPTS = | local @LWP::Protocol::http::EXTRA_SOCK_OPTS = |
(LocalAddr => '127.0.0.1'); | (LocalAddr => '127.0.0.1'); |
} | } |