summaryrefslogtreecommitdiffstats
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--surf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/surf.c b/surf.c
index 87c10ef..02656ec 100644
--- a/surf.c
+++ b/surf.c
@@ -1270,8 +1270,12 @@ setup(void) {
/* proxy */
if((proxy = getenv("http_proxy")) && strcmp(proxy, "")) {
- new_proxy = g_strrstr(proxy, "http://") ? g_strdup(proxy) :
- g_strdup_printf("http://%s", proxy);
+ new_proxy = g_strrstr(proxy, "http://")
+ || g_strrstr(proxy, "socks://")
+ || g_strrstr(proxy, "socks4://")
+ || g_strrstr(proxy, "socks5://")
+ ? g_strdup(proxy)
+ : g_strdup_printf("http://%s", proxy);
puri = soup_uri_new(new_proxy);
g_object_set(G_OBJECT(s), "proxy-uri", puri, NULL);
soup_uri_free(puri);
src='//www.gravatar.com/avatar/ab32d65919a7bb8c3780c88ca87a3dab?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Andrew D. France 1-38/+25 2025-07-23CRITICAL FOR TESTING: This copies the entire Jenkins workspace (including the...Gravatar Andrew D. France 2-9/+7