Ignore:
Timestamp:
Nov 26, 2007 5:36:18 AM (16 years ago)
Author:
bennylp
Message:

Fixed pj_gethostip() returns 0.0.0.0. Also how it returns the first interface if else fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ip_helper_generic.c

    r1584 r1599  
    3434 
    3535    /* Just get one default route */ 
    36     status = pj_gethostip(&ifs[0]); 
     36    status = pj_getdefaultipinterface(&ifs[0]); 
    3737    if (status != PJ_SUCCESS) 
    3838        return status; 
     
    112112 
    113113    /* Just get one default route */ 
    114     status = pj_gethostip(&routes[0].ipv4.if_addr); 
     114    status = pj_getdefaultipinterface(&routes[0].ipv4.if_addr); 
    115115    if (status != PJ_SUCCESS) 
    116116        return status; 
Note: See TracChangeset for help on using the changeset viewer.