We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e01fd commit cd53865Copy full SHA for cd53865
components/modules/net.c
@@ -978,13 +978,13 @@ static int net_getdnsserver( lua_State* L ) {
978
// ip_addr_t ipaddr;
979
// dns_getserver(numdns,&ipaddr);
980
// Bug fix by @md5crypt https://github.com/nodemcu/nodemcu-firmware/pull/500
981
- ip_addr_t ipaddr = dns_getserver(numdns);
+ const ip_addr_t *ipaddr = dns_getserver(numdns);
982
983
- if ( ip_addr_isany(&ipaddr) ) {
+ if ( ip_addr_isany(ipaddr) ) {
984
lua_pushnil( L );
985
} else {
986
char temp[IP_STR_SZ];
987
- ipstr (temp, &ipaddr);
+ ipstr (temp, ipaddr);
988
lua_pushstring( L, temp );
989
}
990
sdk/esp32-esp-idf
0 commit comments