Changeset 12f041d for protocols


Ignore:
Timestamp:
2015-10-21T13:14:17Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
b0da3b8
Parents:
3314ced
Message:

socks4a proxy support (like socks4 with remote DNS)

Fixes trac ticket 995 https://bugs.bitlbee.org/bitlbee/ticket/995

This is slightly pointless for the suggested use case (tor), since with
socks5 we already send a hostname instead of an IP address.

Either way, it was easy to implement, so I hope it helps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    r3314ced r12f041d  
    122122                purple_blist_load();
    123123                purple_prefs_load();
     124
     125                if (proxytype == PROXY_SOCKS4A) {
     126                        /* do this here after loading prefs. yes, i know, it sucks */
     127                        purple_prefs_set_bool("/purple/proxy/socks4_remotedns", TRUE);
     128                }
     129
    124130                dir_fixed = TRUE;
    125131        }
     
    14041410                PurpleProxyInfo *pi = purple_global_proxy_get_info();
    14051411                switch (proxytype) {
     1412                case PROXY_SOCKS4A:
    14061413                case PROXY_SOCKS4:
    14071414                        purple_proxy_info_set_type(pi, PURPLE_PROXY_SOCKS4);
Note: See TracChangeset for help on using the changeset viewer.