Skip to content

Commit 1923c46

Browse files
committed
Net: for for IPv4 case skipping 0.0.0.0
1 parent 4923172 commit 1923c46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Net/src/IPAddress.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ IPAddress IPAddress::parse(const std::string& addr)
549549
bool IPAddress::tryParse(const std::string& addr, IPAddress& result)
550550
{
551551
IPv4AddressImpl impl4(IPv4AddressImpl::parse(addr));
552-
if (impl4 != IPv4AddressImpl())
552+
if (impl4 != IPv4AddressImpl() || trim(addr) == "0.0.0.0")
553553
{
554554
result.newIPv4(impl4.addr());
555555
return true;

0 commit comments

Comments
 (0)