Skip to content

Commit 7534b07

Browse files
authored
Backport esp8266#7586
1 parent bdf1933 commit 7534b07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/esp8266/IPAddress.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ bool IPAddress::isValid(const char* arg) {
183183
CONST IPAddress INADDR_ANY; // generic "0.0.0.0" for IPv4 & IPv6
184184
const IPAddress INADDR_NONE(255,255,255,255);
185185

186+
void IPAddress::clear() {
187+
(*this) = INADDR_ANY;
188+
}
189+
186190
/**************************************/
187191

188192
#if LWIP_IPV6

0 commit comments

Comments
 (0)