Changeset 5485
- Timestamp:
- Nov 17, 2016 4:38:25 AM (8 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in
r5480 r5485 182 182 /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ 183 183 # define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 184 /* Use pj_getaddrinfo() (instead of pj_inet_pton()) in 185 * pj_sockaddr_set_str_addr() 186 */ 187 # define PJ_SOCKADDR_USE_GETADDRINFO 1 184 188 185 189 # include "TargetConditionals.h" -
pjproject/trunk/pjlib/src/pj/sock_common.c
r5444 r5485 173 173 174 174 if (str_addr && str_addr->slen) { 175 #if defined(PJ_SOCKADDR_USE_GETADDRINFO) && PJ_SOCKADDR_USE_GETADDRINFO!=0 176 if (1) { 177 #else 175 178 status = pj_inet_pton(PJ_AF_INET6, str_addr, &addr->ipv6.sin6_addr); 176 179 if (status != PJ_SUCCESS) { 180 #endif 177 181 pj_addrinfo ai; 178 182 unsigned count = 1; … … 182 186 pj_memcpy(&addr->ipv6.sin6_addr, &ai.ai_addr.ipv6.sin6_addr, 183 187 sizeof(addr->ipv6.sin6_addr)); 188 addr->ipv6.sin6_scope_id = ai.ai_addr.ipv6.sin6_scope_id; 184 189 } 185 190 }
Note: See TracChangeset
for help on using the changeset viewer.