Skip to content

Commit c5f2f07

Browse files
committed
Merge pull request #1814 from baruch/avoid-multiple-instances
Avoid multiple instances of INADDR_NONE
2 parents 44d22f3 + 91cc6ff commit c5f2f07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: cores/esp8266/IPAddress.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ String IPAddress::toString()
112112
return String(szRet);
113113
}
114114

115+
const IPAddress INADDR_NONE(0, 0, 0, 0);

Diff for: cores/esp8266/IPAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ class IPAddress: public Printable {
8787
friend class DNSClient;
8888
};
8989

90-
const IPAddress INADDR_NONE(0, 0, 0, 0);
90+
extern const IPAddress INADDR_NONE;
9191

9292
#endif

0 commit comments

Comments
 (0)