comparison src/proxy.c @ 2306:7973a8348d8b

[gaim-migrate @ 2316] hopefully this should make gethostbyname not take nearly as long committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 18 Sep 2001 22:27:41 +0000
parents d2686f757d6e
children 2927c2c26fe6
comparison
equal deleted inserted replaced
2305:0371b905baef 2306:7973a8348d8b
711 if (!host || !port || (port == -1) || !func) { 711 if (!host || !port || (port == -1) || !func) {
712 g_free(phb); 712 g_free(phb);
713 return -1; 713 return -1;
714 } 714 }
715 715
716 sethostent(1);
717
716 if ((proxytype == PROXY_NONE) || 718 if ((proxytype == PROXY_NONE) ||
717 !proxyhost || !proxyhost[0] || 719 !proxyhost || !proxyhost[0] ||
718 !proxyport || (proxyport == -1)) 720 !proxyport || (proxyport == -1))
719 return proxy_connect_none(host, port, phb); 721 return proxy_connect_none(host, port, phb);
720 else if (proxytype == PROXY_HTTP) 722 else if (proxytype == PROXY_HTTP)