Skip to content

Commit 9618eec

Browse files
committedAug 2, 2017
Set DNS IP to type V4
Fixes: espressif#553
1 parent a1bef8b commit 9618eec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎libraries/WiFi/src/ETH.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ bool ETHClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, I
129129
return false;
130130
}
131131
ip_addr_t d;
132+
d.type = IPADDR_TYPE_V4;
132133
133134
if(dns1 != (uint32_t)0x00000000) {
134135
// Set DNS1-Server

‎libraries/WiFi/src/WiFiSTA.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ bool WiFiSTAClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subne
217217
return false;
218218
}
219219
ip_addr_t d;
220+
d.type = IPADDR_TYPE_V4;
220221

221222
if(dns1 != (uint32_t)0x00000000) {
222223
// Set DNS1-Server

0 commit comments

Comments
 (0)