8000 Set DNS IP to type V4 · HwangSangDu/arduino-esp32@9618eec · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9618eec

Browse files
committed
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
0