mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6840] [Bug]: cipher Suites Doesn't show up in client application / Subscription #4549
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#4549
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 @hesamhanari on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6840
Describe the bug
وقتی داخل پنل، تنظیمات
Cipher Suite
رو تغییر میدم، داخل سابسکریپشن و یا کلاینتهای مختلف هیچ تغییری ایجاد نمیشه و سایفرسوییت به صورت خالی نمایش داده میشه.
How to reproduce the problem
یک اینباند جدید بسازید.
حتما tls داشته باشد
داخل تنظیمات سایفر، یکی از گزینه هارا انتخاب کنید.
اینباند را به یوزر اد کنید.
سابکریپشن را اپدیت کنید
اینباند اضافه شده داخل برنامه یوزر، بدون سایفرسوییت خواهد بود.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.10.2
Xray-core version
No response
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
@MHSanaei commented on GitHub (Oct 16, 2026):
@claude analyze
@github-actions[bot] commented on GitHub (Oct 16, 2026):
به احتمال زیاد این باگ نیست و رفتار فعلی پنل همین است. لینکهای اشتراکگذاری (
vless://،vmess://،trojan://) و سابسکریپشن معمولی هیچ پارامتری برای Cipher Suites ندارند، پس کلاینت نمیتواند این فیلد را از لینک پر کند و خالی نشانش میدهد. فقط سابسکریپشن JSON مقدارcipherSuitesرا به کلاینت میفرستد. در گزارش نوشته نشده کلاینت کدام نوع سابسکریپشن را وارد کرده؛ همین تعیین میکند باگ است یا نه.هر خروجی با Cipher Suites چه میکند (نسخه 3.10.2 و
mainفعلی):applyShareTLSParamsدرinternal/sub/service.go:1831-1865فقطsecurity،alpn،sni،fp،ech،vcnوpcsرا مینویسد. نسخهی VMess یعنیapplyVmessTLSParams(internal/sub/service.go:1867-1900) هم همین فیلدها را دارد. پارامتری برای cipher suite نوشته نمیشود. سازندهی لینک در فرانتاند (frontend/src/lib/xray/) و پیادهسازیdocs/lib/xray/هم چنین پارامتری ندارند. قالب استاندارد لینک Xray اصلاً فیلدی برای این کار ندارد.internal/sub/json_service.go:787-788منتقل میشود: اگر از Host استفاده کنید، override آن هم ازinternal/sub/host_sub.go:74-75وinternal/sub/service.go:2157-2158اعمال میشود. تستهایTestSubJsonServiceTLSCipherSuitesForwarded(internal/sub/json_service_test.go:206) وTestSub_HostCipherSuitesJSON(internal/sub/host_sub_test.go:596) این رفتار را تضمین میکنند.tlsDataدرinternal/sub/clash_service.go:1226-1238فقطserverName،alpn،fingerprintوpin-sha256را مینویسد و cipher suite ندارد.راه حل: اگر کلاینت باید Cipher Suites را داشته باشد، به جای لینک یا سابسکریپشن معمولی، آدرس سابسکریپشن JSON پنل را وارد کنید. اگر کلاینت از کانفیگ JSON پشتیبانی نمیکند، مقدار را دستی در کلاینت وارد کنید.
برای اینکه موضوع روشن شود، لطفاً اینها را بنویسید:
tlsSettingsاز فایل JSON دانلودشده (با دامنه و UUID پوشاندهشده)، و اسم کلاینت. اگر در آن JSON کلیدcipherSuitesوجود نداشته باشد، باگ واقعی است.این تحلیل دوباره و کامل روی سورس فعلی انجام شد. نتیجهاش با #6741 یکی است: آنجا هم همین پرسش مطرح بود و گزارشدهنده تأیید کرد که از لینک VLESS استفاده کرده است.
Verdict: Not a bug (expected behaviour), assuming the client imported a share link or the plain/Clash subscription
Severity: N/A
Confidence: Medium (the reporter did not say which subscription format the client imported)
Root cause: None for share links. No cipher-suite parameter exists in the share-link format, and
applyShareTLSParams(internal/sub/service.go:1831) /applyVmessTLSParams(internal/sub/service.go:1867) do not write one. The JSON subscription forwards it (internal/sub/json_service.go:787-788, added ind9b599b9"fix(sub): forward tlsSettings.cipherSuites into the JSON subscription"). The ClashtlsData(internal/sub/clash_service.go:1226) omits it.Same class: None found
Already fixed: Not applicable
Duplicate of: Related: #6741 (same question; that reporter confirmed they had used a VLESS link)
Evidence:
internal/sub/service.go:1831-1865,1867-1900,2157-2158;internal/sub/json_service.go:787-788;internal/sub/host_sub.go:74-75;internal/sub/clash_service.go:1226-1238; testsTestSubJsonServiceTLSCipherSuitesForwarded(internal/sub/json_service_test.go:206) andTestSub_HostCipherSuitesJSON(internal/sub/host_sub_test.go:596)Not determined: Which subscription format and client app the reporter uses. A JSON subscription served without
cipherSuitesfor a TLS inbound with suites set would be a real bug; the reporter's downloaded JSON would settle it.این پاسخ بهصورت خودکار و با خواندن سورس مخزن تهیه شده است؛ ممکن است یکی از نگهدارندگان پروژه هم پاسخ دهد.
@HamidrezaTg commented on GitHub (Oct 22, 2026):
Confirmed on v3.10.2: Hosts cipher suites only reach JSON/Clash subscriptions (
applyExternalProxyTLSToStream); the raw share-link builder (applyExternalProxyTLSParamsininternal/sub/service.go) never writescs. Clients that readcs(e.g. PattNG, withfp=unsafe) therefore get an empty value. PR #6825 addscsto vless/trojan/vmess share links and would fix this.