check if lb algorithm is uri related
diff --git a/src/proxy.c b/src/proxy.c
index 793bc48..a8eb17a 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -95,7 +95,7 @@
 	p = findproxy(bk_name, PR_CAP_BE);
 	if (bk)
 		*bk = p;
-	if (!p)
+	if (!p || (p->lbprm.algo & BE_LB_PARM) != BE_LB_HASH_URI)
 		return 0;
 	fprintf(stderr, "%s\n", uri);
 	s = get_server_uh(p, uri, uri_len);