commit | 1384dea8fe56b85f8dfb12d013474c5499cf8cd1 | [log] [tgz] |
---|---|---|
author | vd000001 <v_natalie@mediatek.com> | Thu Sep 16 11:28:23 2021 +0800 |
committer | vd000001 <v_natalie@mediatek.com> | Thu Sep 16 11:28:23 2021 +0800 |
tree | e15ddcc98408b238ac40d267725794c8651bd6f8 | |
parent | 8b2b9e4ff3e0851d2e89d98a4f8975f2b5193085 [diff] |
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);