Skip to content

Commit

Permalink
drivers: modem: hl7800: only set DNS addr if not set
Browse files Browse the repository at this point in the history
Only set the DNS resolver server address if one has not been specified.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
  • Loading branch information
rerickson1 authored and jukkar committed Oct 19, 2020
1 parent 84158f5 commit 0e86699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/modem/hl7800.c
Expand Up @@ -1486,7 +1486,7 @@ static bool on_cmd_atcmdinfo_iccid(struct net_buf **buf, uint16_t len)

static void dns_work_cb(struct k_work *work)
{
#ifdef CONFIG_DNS_RESOLVER
#if defined(CONFIG_DNS_RESOLVER) && !defined(CONFIG_DNS_SERVER_IP_ADDRESSES)
int ret;
struct dns_resolve_context *dnsCtx;
const char *dns_servers_str[] = { ictx.dns_string };
Expand Down

0 comments on commit 0e86699

Please sign in to comment.