Commit e043f5a5aa8b7e7c54a7fc64efbdb770365a4517

Kano 2012-09-12T08:32:00

bug: remove proxy: from the front of the proxy used

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 2786653..59743fd 100644
--- a/util.c
+++ b/util.c
@@ -514,7 +514,7 @@ char *get_proxy(char *url, struct pool *pool)
 			if (!(pool->rpc_proxy))
 				quit(1, "Failed to malloc rpc_proxy");
 
-			strcpy(pool->rpc_proxy, url);
+			strcpy(pool->rpc_proxy, url + plen);
 			pool->rpc_proxytype = proxynames[i].proxytype;
 			url = split + 1;
 			break;