Ignore:
Timestamp:
Jan 20, 2007 5:11:08 AM (15 years ago)
Author:
bennylp
Message:

Fix ticket #71: When host doesn't have any NIC interfaces, pj_gethostip() should return 127.0.0.1 instead of error

File:
1 edited

Legend:

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

    r722 r885  
    8888        if (status != PJ_SUCCESS) { 
    8989            pj_sock_close(fd); 
    90             return status; 
     90            /* Return 127.0.0.1 as the address */ 
     91            return PJ_SUCCESS; 
    9192        } 
    9293 
     
    9596        if (status != PJ_SUCCESS) { 
    9697            pj_sock_close(fd); 
    97             return status; 
     98            /* Return 127.0.0.1 as the address */ 
     99            return PJ_SUCCESS; 
    98100        } 
    99101 
Note: See TracChangeset for help on using the changeset viewer.