From 2ba933d16a50e508e8260c7e1b0c40ef5e822c4d Mon Sep 17 00:00:00 2001 From: Skyxim 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) }