Skip to content

Subscription-Userinfo total=0 is treated as quota exceeded instead of unlimited #1974

@Andruxa0

Description

@Andruxa0

Search first

  • I searched and no similar issues were found

Platform/OS

Windows, Android

OS version

Windows 11

Hiddify Version

4.0.5

What Happened?

In previous versions of Hiddify, when the subscription header contained:
Subscription-Userinfo: upload=...; download=...; total=0; expire=...
the client correctly interpreted total=0 as unlimited traffic and displayed no quota limit.

After updating to version 4.0.5, this behavior has changed.
Now, when total=0 is sent in headers, Hiddify shows:
A finite total value (incorrectly calculated)
"Quota exceeded"
A fully filled progress bar
This is incorrect, because total=0 should represent unlimited traffic, not zero quota.

Expected behavior:
Display unlimited traffic (∞ or no limit)
No quota exceeded warning
No progress bar overflow

Actual behavior in 4.0.5:
Shows a finite total (e.g., 85.9 GiB)
Displays "Quota exceeded"
Marks subscription as exhausted
This appears to be a regression compared to earlier versions.

Please clarify:
Is total=0 still officially supported as unlimited?
If not, what is the correct way to indicate unlimited traffic in Subscription-Userinfo?

Thank you.

Minimal Reproducible Example (MRE)

Subscription-Userinfo": total=0 in headers

Expected Behavior

No response

Additional Context

No response

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions