Set DNS IP to type V4
Fixes: https://github.com/espressif/arduino-esp32/issues/553
This commit is contained in:
parent
a1bef8b5c3
commit
9618eec19e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user