Ignore:
Timestamp:
Nov 14, 2016 3:23:51 AM (8 years ago)
Author:
ming
Message:

Re #1945 (misc): Disable local host resolution (PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) for macOS as well (instead of for iOS only).
Please refer to #1342 for more details.

Thanks to Jeff Anderson for the report and the fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r5458 r5480  
    180180 
    181181#if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 
     182     /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ 
     183#    define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 
     184 
    182185#    include "TargetConditionals.h" 
    183186#    if TARGET_OS_IPHONE 
     
    185188        /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */ 
    186189#       define PJ_GETADDRINFO_USE_CFHOST 1 
    187         /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ 
    188 #       define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 
    189190#       ifdef __IPHONE_4_0 
    190191            /* Is multitasking support available?  (see ticket #1107) */ 
Note: See TracChangeset for help on using the changeset viewer.