mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
chore: hysteria params verify
This commit is contained in:
parent
669961e496
commit
2ba933d16a
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user