我尝试过使用get_address,inet_aton和LocalAddr来设置Furl使用的出站IP,但在以下方面无济于事:
my $furl = Furl->new(
LocalAddr => "192.168.1.1",
ssl_opts => { SSL_verify_mode => '0' },
timeout => '30',
inactivity_timeout => '30',
max_redirects => '0',
headers => [ 'Accept-Encoding' => 'gzip', 'Connection' => 'close' ]
);
my $req = $furl->get($target);
任何人都可以帮助一个有效的例子吗?