diff --git a/modules/juce_core/network/juce_IPAddress.cpp b/modules/juce_core/network/juce_IPAddress.cpp index a300a3a7f4..7940d45719 100644 --- a/modules/juce_core/network/juce_IPAddress.cpp +++ b/modules/juce_core/network/juce_IPAddress.cpp @@ -153,7 +153,7 @@ String IPAddress::toString() const return getFormattedAddress (addressString); } -IPAddress IPAddress::any (bool IPv6) noexcept { return IPAddress (IPv6); } +IPAddress IPAddress::any() noexcept { return IPAddress(); } IPAddress IPAddress::broadcast() noexcept { return IPAddress (255, 255, 255, 255); } IPAddress IPAddress::local (bool IPv6) noexcept { return IPv6 ? IPAddress (0, 0, 0, 0, 0, 0, 0, 1) : IPAddress (127, 0, 0, 1); } diff --git a/modules/juce_core/network/juce_IPAddress.h b/modules/juce_core/network/juce_IPAddress.h index dd563829e6..f0b0f448f9 100644 --- a/modules/juce_core/network/juce_IPAddress.h +++ b/modules/juce_core/network/juce_IPAddress.h @@ -70,7 +70,7 @@ public: String toString() const; /** Returns an IPv4 or IPv6 address meaning "any", equivalent to 0.0.0.0 (IPv4) or ::, (IPv6) */ - static IPAddress any (bool IPv6 = false) noexcept; + static IPAddress any() noexcept; /** Returns an IPv4 address meaning "broadcast" (255.255.255.255) */ static IPAddress broadcast() noexcept;