diff --git a/internal/nginx/extensions.go b/internal/nginx/extensions.go index b23205cc52..2af42286dc 100644 --- a/internal/nginx/extensions.go +++ b/internal/nginx/extensions.go @@ -25,16 +25,14 @@ func ParseLBMethod(method string) (string, error) { } var nginxLBValidInput = map[string]bool{ - "least_conn": true, - "ip_hash": true, - "random": true, - "random two": true, - "random two least_conn": true, + "least_conn": true, + "ip_hash": true, + "random": true, + "random two": true, + "random two least_conn": true, } var nginxPlusLBValidInput = map[string]bool{ - "least_time": true, - "last_byte": true, "least_conn": true, "ip_hash": true, "random": true, diff --git a/internal/nginx/extensions_test.go b/internal/nginx/extensions_test.go index ef645c0242..e06817b1d1 100644 --- a/internal/nginx/extensions_test.go +++ b/internal/nginx/extensions_test.go @@ -72,6 +72,8 @@ func TestParseLBMethodForPlus(t *testing.T) { "", "blabla", "hash123", + "least_time", + "last_byte", "least_time inflight header", "random one", "random two ip_hash",