uv-common: add error detection in inet_addr()

Check this url: http://linux.die.net/man/3/inet_addr, please. And I noticed this point:
> Use of this function is problematic because -1 is a valid address (255.255.255.255)

Then If we except the `255.255.255.255` case, the `inet_addr()` function could throw the invalid ip error and work well.