lb: fix haproxy cannot start if algorithm is not lowercase (#9698)

This commit is contained in:
Wei Zhou 2024-09-19 13:54:53 +02:00 committed by GitHub
parent 50d7ebf5cf
commit 7f2ab635e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -484,7 +484,7 @@ public class HAProxyConfigurator implements LoadBalancerConfigurator {
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;