in reply to How to handle Net::Address::IP::Local'->public when we are not connected to internet
After perusing Net::Address::IP::Local, I think that perhaps you are getting back Socket::INADDR_ANY, which is likely "\0\0\0\0", which is a true value.
I expect that the next thing that your code does is to call Socket's inet_ntoa(). So you could also provide a default if that returns "0.0.0.0".
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to handle Net::Address::IP::Local'->public when we are not connected to internet (INADDR_ANY)
by Anonymous Monk on Jan 19, 2015 at 17:28 UTC | |
by Laurent_R (Canon) on Jan 19, 2015 at 18:54 UTC | |
|
Re^2: How to handle Net::Address::IP::Local'->public when we are not connected to internet (INADDR_ANY)
by ppp (Acolyte) on Jan 19, 2015 at 16:40 UTC |