mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 14:42:51 +01:00
Net: for for IPv4 case skipping 0.0.0.0
This commit is contained in:
parent
4923172241
commit
1923c460a5
@ -549,7 +549,7 @@ IPAddress IPAddress::parse(const std::string& addr)
|
||||
bool IPAddress::tryParse(const std::string& addr, IPAddress& result)
|
||||
{
|
||||
IPv4AddressImpl impl4(IPv4AddressImpl::parse(addr));
|
||||
if (impl4 != IPv4AddressImpl())
|
||||
if (impl4 != IPv4AddressImpl() || trim(addr) == "0.0.0.0")
|
||||
{
|
||||
result.newIPv4(impl4.addr());
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user