- Timestamp:
- Jun 9, 2008 10:07:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_common.c
r1952 r1999 469 469 470 470 471 /* If we end up with 127.x.x.x, resolve the IP by getting the default 472 * interface to connect to some public host. 471 /* If we end up with 127.0.0.0/8 or 0.0.0.0/8, resolve the IP 472 * by getting the default interface to connect to some public host. 473 * The 0.0.0.0/8 is a special IP class that doesn't seem to be 474 * practically useful for our purpose. 473 475 */ 474 476 if (status != PJ_SUCCESS || !pj_sockaddr_has_addr(addr) || 475 (af==PJ_AF_INET && (pj_ntohl(addr->ipv4.sin_addr.s_addr) >> 24)==127)) 477 (af==PJ_AF_INET && (pj_ntohl(addr->ipv4.sin_addr.s_addr)>>24)==127) || 478 (af==PJ_AF_INET && (pj_ntohl(addr->ipv4.sin_addr.s_addr)>>24)==0)) 476 479 { 477 480 status = pj_getdefaultipinterface(af, addr);
Note: See TracChangeset
for help on using the changeset viewer.