IPV6 interface tweaks

This commit is contained in:
Joseph Henry
2017-10-16 12:23:10 -07:00
parent 524af1cb2e
commit e36b88004f
7 changed files with 71 additions and 59 deletions

View File

@@ -506,7 +506,7 @@ int zts_add_dns_nameserver(struct sockaddr *addr)
{
DEBUG_EXTRA();
int err = -1;
#if defined(STACK_LWIP)
#if defined(STACK_LWIP) && defined(LIBZT_IPV4)
struct sockaddr_in *in4 = (struct sockaddr_in*)&addr;
static ip_addr_t ipaddr;
ipaddr.addr = in4->sin_addr.s_addr;