chore: hysteria params verify

This commit is contained in:
Skyxim 2022-06-25 12:43:47 +08:00
parent 669961e496
commit 2ba933d16a

View File

@ -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)
}