Mercurial > pidgin
comparison libpurple/protocols/bonjour/jabber.c @ 17599:bce4211c4980
More robust hack to force Bonjour to use no proxy when directly connecting to buddy.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 11 Jun 2007 14:12:30 +0000 |
parents | 6e4e2d234c3a |
children | 1faa319ab4c3 |
comparison
equal
deleted
inserted
replaced
17596:18b62b0fc253 | 17599:bce4211c4980 |
---|---|
734 | 734 |
735 /* Check if there is a previously open conversation */ | 735 /* Check if there is a previously open conversation */ |
736 if (bb->conversation == NULL) | 736 if (bb->conversation == NULL) |
737 { | 737 { |
738 PurpleProxyConnectData *connect_data; | 738 PurpleProxyConnectData *connect_data; |
739 PurpleProxyInfo *proxy_info; | |
739 | 740 |
740 /* Make sure that the account always has a proxy of "none". | 741 /* Make sure that the account always has a proxy of "none". |
741 * This is kind of dirty, but proxy_connect_none() isn't exposed. */ | 742 * This is kind of dirty, but proxy_connect_none() isn't exposed. */ |
742 static PurpleProxyInfo *tmp_none_proxy_info = NULL; | 743 proxy_info = purple_account_get_proxy_info(data->account); |
743 if (!tmp_none_proxy_info) { | 744 if (proxy_info == NULL) { |
744 tmp_none_proxy_info = purple_proxy_info_new(); | 745 proxy_info = purple_proxy_info_new(); |
745 purple_proxy_info_set_type(tmp_none_proxy_info, PURPLE_PROXY_NONE); | 746 purple_account_set_proxy_info(data->account, proxy_info); |
746 } | 747 } |
747 purple_account_set_proxy_info(data->account, tmp_none_proxy_info); | 748 purple_proxy_info_set_type(proxy_info, PURPLE_PROXY_NONE); |
748 | 749 |
749 connect_data = | 750 connect_data = |
750 purple_proxy_connect(data->account->gc, data->account, bb->ip, | 751 purple_proxy_connect(data->account->gc, data->account, bb->ip, |
751 bb->port_p2pj, _connected_to_buddy, pb); | 752 bb->port_p2pj, _connected_to_buddy, pb); |
752 | 753 |