From 4bb7367cfa9049b2b9135097be7226e79bf6dd42 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Wed, 25 Jul 2018 05:16:15 -0500 Subject: [PATCH] fix from_ip_port_new() --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index 13ef814..0c65dd9 100644 --- a/common.h +++ b/common.h @@ -143,7 +143,7 @@ struct address_t //TODO scope id } else if(type==AF_INET6) { - inner.ipv6.sin6_family=AF_INET; + inner.ipv6.sin6_family=AF_INET6; inner.ipv6.sin6_port=htons(port); inner.ipv6.sin6_addr=*((in6_addr*)ip); }