It's not documented in the POD, but...
@LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => $ip_to_use);However, I don't recall if it works for all protocols that LWP supports, and may be something that is deprecated in future releases.
--k.
In reply to Re: Telling LWP which source IP to use
by Kanji
in thread Telling LWP which source IP to use
by geekondemand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |