From 5d9b999fa0a880b030fde07630eed9ce7736a1b1 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 25 Jun 2022 12:43:47 +0800 Subject: [PATCH] chore: hysteria params verify --- adapter/outbound/hysteria.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/outbound/hysteria.go b/adapter/outbound/hysteria.go index a3eca0eb..60b2efa0 100644 --- a/adapter/outbound/hysteria.go +++ b/adapter/outbound/hysteria.go @@ -93,7 +93,7 @@ func (c *HysteriaOption) Speed() (uint64, uint64, error) { } down = stringToBps(c.Down) - if up == 0 { + if down == 0 { return 0, 0, fmt.Errorf("invaild download speed: %s", c.Down) }