Skip to content

Commit

Permalink
lb: fix haproxy cannot start if algorithm is not lowercase (#9698)
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Sep 19, 2024
1 parent 50d7ebf commit 7f2ab63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private List<String> getRulesForPool(final LoadBalancerTO lbTO, final boolean ke
sb.append("\tbind ").append(publicIP).append(":").append(publicPort);
result.add(sb.toString());
sb = new StringBuilder();
sb.append("\t").append("balance ").append(algorithm);
sb.append("\t").append("balance ").append(algorithm.toLowerCase());
result.add(sb.toString());

int i = 0;
Expand Down

0 comments on commit 7f2ab63

Please sign in to comment.