about summary refs log tree commit diff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-18 14:27:58 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-18 14:59:13 +0100
commitb7cc1ae9644097899f881eb321c445ffca0bb3f2 (patch)
tree1995cab667a9cadf60255367f020aef5b78c1efc /surf.c
parentSwitch headers to webkit2 (diff)
downloadsurf-b7cc1ae9644097899f881eb321c445ffca0bb3f2.tar.gz
surf-b7cc1ae9644097899f881eb321c445ffca0bb3f2.tar.bz2
surf-b7cc1ae9644097899f881eb321c445ffca0bb3f2.zip
Remove proxy stuff, it's now handled by WebView
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/surf.c b/surf.c
index d36a5a5..da5eb09 100644
--- a/surf.c
+++ b/surf.c
@@ -104,7 +104,6 @@ static Client *clients = NULL;
 static Window embed = 0;
 static gboolean showxid = FALSE;
 static char winid[64];
-static gboolean usingproxy = 0;
 static char togglestat[9];
 static char pagestat[3];
 static GTlsDatabase *tlsdb;
@@ -1292,9 +1291,7 @@ void
 setup(void)
 {
 	int i;
-	char *proxy, *new_proxy;
 	char *styledirfile, *stylepath;
-	SoupURI *puri;
 	SoupSession *s;
 	GError *error = NULL;
 
@@ -1365,21 +1362,6 @@ setup(void)
 	}
 	g_object_set(G_OBJECT(s), "tls-database", tlsdb, NULL);
 	g_object_set(G_OBJECT(s), "ssl-strict", strictssl, NULL);
-
-	/* proxy */
-	if ((proxy = getenv("http_proxy")) && strcmp(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);
-		g_free(new_proxy);
-		usingproxy = 1;
-	}
 }
 
 void
@@ -1584,8 +1566,7 @@ getpagestat(Client *c)
 	else
 		pagestat[0] = '-';
 
-	pagestat[1] = usingproxy ? 'P' : '-';
-	pagestat[2] = '\0';
+	pagestat[1] = '\0';
 }
 
 void