mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5141] [Bug]: scMinPostsIntervalMs: 30 is automatically added in 3.x.x and triggers TSPU blocking on mobile networks in Russia #3612
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ttrroyy on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5141
Describe the bug
After updating to the 3.x.x branch, many users started experiencing mass connection blocks.
The panel now automatically injects the following parameters into the Xray configuration:
JSON"scMaxEachPostBytes": "1000000",
"scMinPostsIntervalMs": "30"
The value scMinPostsIntervalMs: 30 is quickly detected by Russia’s TSPU (traffic filtering system) on mobile networks, causing immediate blocking.
These parameters are being added to:
The Advanced Xray template
The Extra block in client links and subscriptions
How to reproduce the problem
Workaround:
Manually remove both lines from the Advanced template and from the Extra block in client configs.
Request:
Please make scMinPostsIntervalMs optional or remove the automatic injection of this aggressive default value, as it breaks usability on Russian mobile networks.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.x.x
Xray-core version
25.x.x
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 9, 2026):
Thanks for the detailed report. I traced this through the source code and can confirm the root cause.
Root cause
In
frontend/src/schemas/protocols/stream/xhttp.ts, the Zod schema for XHTTP stream settings declares these defaults:Any XHTTP inbound or outbound created (or re-saved) through the 3.x frontend gets these values written to the database. From there, the subscription service (
sub/subService.go:1581–1591) emits them into theextrablob of share links/subscriptions whenever the stored string is non-empty:The wire-normalizer (
frontend/src/lib/xray/stream-wire-normalize.ts) correctly stripsscMinPostsIntervalMsfor inbound configs (line 123), but leaves it in place for outbound configs inautoorpacket-upmode — which is most clients.Workaround (until a fix lands)
For each affected XHTTP inbound, open its edit form in the panel and clear the
scMinPostsIntervalMsandscMaxEachPostBytesfields (set them to empty), then save. Once the fields are empty, the subscription service will no longer include them in generated links (len(v) > 0guard). You do not need to touch the raw xray JSON template directly.Proper fix
The cleanest fix is to change the default in
frontend/src/schemas/protocols/stream/xhttp.tsfrom'30'to''forscMinPostsIntervalMs(and possibly also forscMaxEachPostBytes). An empty default means the field is omitted from new configs and from subscriptions, letting xray-core use its own internal default without injecting an explicit value into every share link.This would be a one-line change on line 54 of that file:
Existing configs already stored with
'30'would need a one-time re-save with the field cleared, or a direct DB update.@SpeedeMiner commented on GitHub (Jun 10, 2026):
Is this the only parameter that triggers blocking?
"scMinPostsIntervalMs": "30".
I only use this parameter, scMaxEachPostBytes": "2000000". Should I remove it as well?
@MHSanaei commented on GitHub (Jun 11, 2026):
Fixed in d94c3fc5.
Root cause confirmed: the panel seeded every XHTTP config with
scMaxEachPostBytes=1000000andscMinPostsIntervalMs=30— which are xray-core''s own internal defaults — and then emitted them into every generated config and share link. The literalscMinPostsIntervalMs=30is exactly the stable fingerprint TSPU keys on.The fix has two parts so it helps both new and existing setups:
1000000/30) instead of advertising it. Values you set deliberately to something else are still emitted.So after upgrading, your existing inbounds will stop carrying
scMinPostsIntervalMs=30in their links automatically. @SpeedeMiner — to answer your question: yes,scMaxEachPostByteswas being injected the same way; with this fix you no longer need to clear either field by hand. A customscMaxEachPostBytes=2000000that you actually want is preserved. Will be in the next release.