Browse Source

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

Kano 13 years ago
parent
commit
e043f5a5aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -514,7 +514,7 @@ char *get_proxy(char *url, struct pool *pool)
 			if (!(pool->rpc_proxy))
 			if (!(pool->rpc_proxy))
 				quit(1, "Failed to malloc 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;
 			pool->rpc_proxytype = proxynames[i].proxytype;
 			url = split + 1;
 			url = split + 1;
 			break;
 			break;