Set DNS IP to type V4

Fixes: https://github.com/espressif/arduino-esp32/issues/553
This commit is contained in:
me-no-dev 2017-08-02 09:32:05 +03:00
parent a1bef8b5c3
commit 9618eec19e
2 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,7 @@ bool ETHClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, I
return false;
}
ip_addr_t d;
d.type = IPADDR_TYPE_V4;
if(dns1 != (uint32_t)0x00000000) {
// Set DNS1-Server

View File

@ -217,6 +217,7 @@ bool WiFiSTAClass::config(IPAddress local_ip, IPAddress gateway, IPAddress subne
return false;
}
ip_addr_t d;
d.type = IPADDR_TYPE_V4;
if(dns1 != (uint32_t)0x00000000) {
// Set DNS1-Server