Changeset 416:2db037c7ce5f in verona for libeXosip2/src/eXconf.c


Ignore:
Timestamp:
Jan 17, 2012 3:55:07 PM (16 months ago)
Author:
Vadim Lebedev <vadim@…>
Branch:
default
rebase_source:
6126c71f04a05bf0798d5cfae88e3467840eed65
Message:

fixes for socks transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libeXosip2/src/eXconf.c

    r389 r416  
    636636        int i; 
    637637        struct eXtl_protocol* proto; 
     638        int port; 
    638639 
    639640        for(i = 0; proto = socks_proto_tab[i]; i++) 
     
    650651 
    651652        eXosip.eXtl = proto; 
     653        port = atoi(tport); 
    652654        proto->tl_init(); 
    653         proto->tl_masquerade_contact(tserver, atoi(tport)); 
     655        proto->tl_masquerade_contact(tserver, port); 
    654656        snprintf(eXosip.transport, sizeof(eXosip.transport), "%s", 
    655657                        proto->proto_num == IPPROTO_UDP ? "UDP" : "TCP"); 
     
    666668        } 
    667669#endif 
    668  
    669670        return 0; 
    670671} 
     
    770771        eXosip.keep_alive = 17000; 
    771772 
    772         eXtl_udp.tl_init(); 
    773         eXtl_tcp.tl_init(); 
     773        if (!eXosip.eXtl) { 
     774                eXtl_udp.tl_init(); 
     775                eXtl_tcp.tl_init(); 
    774776#ifdef HAVE_OPENSSL_SSL_H 
    775777#if !(OPENSSL_VERSION_NUMBER < 0x00908000L) 
    776778        eXtl_dtls.tl_init(); 
    777779#endif 
    778         eXtl_tls.tl_init(); 
     780                eXtl_tls.tl_init(); 
     781        } 
    779782#endif 
    780783        return OSIP_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.