mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
sntp: store server IP address after DNS lookup
See patch #9612 Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
2d4da92eeb
commit
e46b9ad4ac
@ -572,6 +572,7 @@ sntp_dns_found(const char *hostname, const ip_addr_t *ipaddr, void *arg)
|
||||
if (ipaddr != NULL) {
|
||||
/* Address resolved, send request */
|
||||
LWIP_DEBUGF(SNTP_DEBUG_STATE, ("sntp_dns_found: Server address resolved, sending request\n"));
|
||||
sntp_servers[sntp_current_server].addr = *ipaddr;
|
||||
sntp_send_request(ipaddr);
|
||||
} else {
|
||||
/* DNS resolving failed -> try another server */
|
||||
|
Loading…
Reference in New Issue
Block a user