Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Aug 10, 2024
1 parent 624355f commit 9d82f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/hysteria2_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Hysteria2Auth(conPass string) (string, error) {
return "", err
}
device, exist := onlineUsers[*account.Username]
if exist && *account.DeviceNo < device {
if exist && *account.DeviceNo <= device {
return "", errors.New("device limited")
}

Expand Down

0 comments on commit 9d82f1b

Please sign in to comment.