Subject: | There is no clean interface allowing binding a specific UserAgent to a specific local IP address |
There is no clean interface allowing binding a specific UserAgent to a
specific local IP address. There isn't really a dirty way to do it either!
You can go:
@LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => $bindAddress);
... but astute readers will have already noted that this is a global
setting, and so not greatly helpful if you want to use different local
addresses under different circumstances.
Could an interface please be added to support setting the local address
on a per-UserAgent basis?