From 1c23013e1656a342df10bd1dac50f0580f2e3564 Mon Sep 17 00:00:00 2001 From: peanutduck Date: Wed, 12 Jun 2024 16:02:36 +0800 Subject: [PATCH] Change positive to non-negative --- modules/caddyhttp/reverseproxy/selectionpolicies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caddyhttp/reverseproxy/selectionpolicies.go b/modules/caddyhttp/reverseproxy/selectionpolicies.go index 441539e939f4..f75de747b452 100644 --- a/modules/caddyhttp/reverseproxy/selectionpolicies.go +++ b/modules/caddyhttp/reverseproxy/selectionpolicies.go @@ -111,7 +111,7 @@ func (r *WeightedRoundRobinSelection) UnmarshalCaddyfile(d *caddyfile.Dispenser) return d.Errf("invalid weight value '%s': %v", weight, err) } if weightInt < 0 { - return d.Errf("invalid weight value '%s': weight should be positive", weight) + return d.Errf("invalid weight value '%s': weight should be non-negative", weight) } r.Weights = append(r.Weights, weightInt) }