Changeset 5385
- Timestamp:
- Jul 15, 2016 2:56:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath-test/sess_auth.c
r5350 r5385 291 291 } 292 292 293 status = pj_gethostip(GET_AF(use_ipv6), &addr); 294 if (status != PJ_SUCCESS) { 295 destroy_server(); 296 return -45; 297 } 293 if (use_ipv6) { 294 /* pj_gethostip() may return IPv6 link-local and currently it will cause 295 * 'no route to host' error, so let's just hardcode to [::1] 296 */ 297 pj_sockaddr_init(pj_AF_INET6(), &addr, NULL, 0); 298 addr.ipv6.sin6_addr.s6_addr[15] = 1; 299 } else { 300 status = pj_gethostip(GET_AF(use_ipv6), &addr); 301 if (status != PJ_SUCCESS) { 302 destroy_server(); 303 return -45; 304 } 305 } 298 306 299 307 pj_sockaddr_copy_addr(&server->addr, &addr);
Note: See TracChangeset
for help on using the changeset viewer.