mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6945] [Bug]: Trojan Outbound Does Not Work While VLESS, VMess, and Shadowsocks Work Correctly / اتصال خروجی (Outbound) پروتکل Trojan کار نمیکند، در حالی که VLESS، VMess و Shadowsocks بهدرستی … #4594
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#4594
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 @montiego on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6945
Describe the bug
Bug Description
I have encountered an issue with the Trojan protocol in the outbound configuration of the 3X-UI panel.
Whenever I add a Trojan outbound configuration, it does not work as expected. However, the exact same Trojan configuration works correctly in various clients on Android, Windows, and other platforms.
I have also tested other outbound protocols in 3X-UI, and they work correctly. VLESS, VMess, and Shadowsocks outbounds all function as expected, but Trojan outbound does not work.
Steps to Reproduce
Expected Behavior
The Trojan outbound should work correctly when provided with a valid configuration, just like VLESS, VMess, and Shadowsocks outbounds.
Actual Behavior
The Trojan outbound fails to work, even though the same configuration works correctly in other clients and the other outbound protocols work properly in 3X-UI.
Additional Information
This issue appears to be specific to the handling of Trojan outbound configurations in 3X-UI.
Could you please investigate this issue and check whether there is a bug in the Trojan outbound configuration handling or its integration with the Xray core?
Thank you for your work on this project.
توضیحات باگ
در بخش تنظیمات Outbound پنل 3X-UI با پروتکل Trojan مشکل دارم.
هر بار که یک کانفیگ Trojan به بخش Outbound اضافه میکنم، کار نمیکند. با این حال، همان کانفیگ دقیق Trojan در کلاینتهای مختلف اندروید، ویندوز و سایر پلتفرمها بهدرستی کار میکند.
پروتکلهای دیگر را نیز در بخش Outbound پنل آزمایش کردهام و همگی بهدرستی کار میکنند. کانفیگهای VLESS، VMess و Shadowsocks بدون مشکل کار میکنند، اما Trojan کار نمیکند.
مراحل بازتولید باگ
۱. یک کانفیگ Trojan به بخش Outbound پنل 3X-UI اضافه کنید.
۲. از کانفیگی استفاده کنید که عملکرد صحیح آن در کلاینتهای دیگر تأیید شده است.
۳. اتصال Outbound را امتحان کنید.
۴. مشاهده میکنید که اتصال Trojan کار نمیکند.
رفتار مورد انتظار
Outbound پروتکل Trojan باید با یک کانفیگ معتبر، درست مانند VLESS، VMess و Shadowsocks، بهدرستی کار کند.
رفتار واقعی
Outbound پروتکل Trojan کار نمیکند؛ با وجود اینکه همان کانفیگ در کلاینتهای دیگر بهدرستی کار میکند و سایر پروتکلهای Outbound نیز در پنل 3X-UI بدون مشکل هستند.
اطلاعات تکمیلی
به نظر میرسد مشکل به نحوه پردازش یا پشتیبانی از تنظیمات Trojan Outbound در پنل 3X-UI مربوط باشد.
لطفاً این مشکل را بررسی کنید و مشخص کنید که آیا باگی در پردازش تنظیمات Trojan Outbound یا یکپارچهسازی آن با هسته Xray وجود دارد یا خیر.
از زحمات شما برای توسعه این پروژه سپاسگزارم.
How to reproduce the problem
Bug Description
I have encountered an issue with the Trojan protocol in the outbound configuration of the 3X-UI panel.
Whenever I add a Trojan outbound configuration, it does not work as expected. However, the exact same Trojan configuration works correctly in various clients on Android, Windows, and other platforms.
I have also tested other outbound protocols in 3X-UI, and they work correctly. VLESS, VMess, and Shadowsocks outbounds all function as expected, but Trojan outbound does not work.
Steps to Reproduce
Expected Behavior
The Trojan outbound should work correctly when provided with a valid configuration, just like VLESS, VMess, and Shadowsocks outbounds.
Actual Behavior
The Trojan outbound fails to work, even though the same configuration works correctly in other clients and the other outbound protocols work properly in 3X-UI.
Additional Information
This issue appears to be specific to the handling of Trojan outbound configurations in 3X-UI.
Could you please investigate this issue and check whether there is a bug in the Trojan outbound configuration handling or its integration with the Xray core?
Thank you for your work on this project.
توضیحات باگ
در بخش تنظیمات Outbound پنل 3X-UI با پروتکل Trojan مشکل دارم.
هر بار که یک کانفیگ Trojan به بخش Outbound اضافه میکنم، کار نمیکند. با این حال، همان کانفیگ دقیق Trojan در کلاینتهای مختلف اندروید، ویندوز و سایر پلتفرمها بهدرستی کار میکند.
پروتکلهای دیگر را نیز در بخش Outbound پنل آزمایش کردهام و همگی بهدرستی کار میکنند. کانفیگهای VLESS، VMess و Shadowsocks بدون مشکل کار میکنند، اما Trojan کار نمیکند.
مراحل بازتولید باگ
۱. یک کانفیگ Trojan به بخش Outbound پنل 3X-UI اضافه کنید.
۲. از کانفیگی استفاده کنید که عملکرد صحیح آن در کلاینتهای دیگر تأیید شده است.
۳. اتصال Outbound را امتحان کنید.
۴. مشاهده میکنید که اتصال Trojan کار نمیکند.
رفتار مورد انتظار
Outbound پروتکل Trojan باید با یک کانفیگ معتبر، درست مانند VLESS، VMess و Shadowsocks، بهدرستی کار کند.
رفتار واقعی
Outbound پروتکل Trojan کار نمیکند؛ با وجود اینکه همان کانفیگ در کلاینتهای دیگر بهدرستی کار میکند و سایر پروتکلهای Outbound نیز در پنل 3X-UI بدون مشکل هستند.
اطلاعات تکمیلی
به نظر میرسد مشکل به نحوه پردازش یا پشتیبانی از تنظیمات Trojan Outbound در پنل 3X-UI مربوط باشد.
لطفاً این مشکل را بررسی کنید و مشخص کنید که آیا باگی در پردازش تنظیمات Trojan Outbound یا یکپارچهسازی آن با هسته Xray وجود دارد یا خیر.
از زحمات شما برای توسعه این پروژه سپاسگزارم.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
dev
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu26
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 (Oct 26, 2026):
I can't tell yet whether this is a panel bug: the panel writes Trojan outbounds in the shape Xray expects, and the report has no config, logs or error text to check against. Please send the details listed below.
What I checked in the source
frontend/src/lib/xray/outbound-form-adapter.ts:722-724: Trojan also shares the same stream, TLS/REALITY and mux code with VLESS and VMess (outbound-form-adapter.ts:883-884). Since those work for you, a fault in that shared code is unlikely.trojan://link importers in the frontend (frontend/src/lib/xray/outbound-link-parser.ts:634-655) and in Go (internal/util/link/outbound.go:340-378) both give the same result. They usesecurity=tlswhen the link doesn't set it, andtype=tcpwhen no transport is given. So if your link is meant to run without TLS, it must containsecurity=none.Please reply with:
dev. The current release isv3.11.0. Please give the exact version the panel shows.streamSettings.trojan://link, if you imported it from one. Same redaction, but keep every query parameter (type,security,sni,fp,alpn,host,path,cs, …).x-ui log, or Logs in the panel). Text only, please.خلاصه (فارسی): هنوز نمیتوان گفت که این مشکل از پنل است. پنل خروجی Trojan را در ساختار استاندارد Xray ذخیره میکند، و بخشهای stream/TLS آن همان کدی است که VLESS و VMess شما با آن کار میکنند. لطفاً موارد ۱ تا ۵ بالا را بهصورت متن بفرستید: نسخه دقیق پنل، JSON خروجی Trojan، لینک
trojan://و لاگ Xray. پسورد و دامنه را حذف کنید.This reply was generated automatically; a maintainer may follow up.
[GH-ISSUE #6945] [Bug]: Trojan Outbound Does Not Work While VLESS, VMess, and Shadowsocks Work Correctly / اتصال خروجی (Outbound) پروتکل Trojan کار نمیکند، در حالی که VLESS، VMess و Shadowsocks بهدرستی …to [GH-ISSUE #6945] [Bug]: Trojan Outbound Does Not Work While VLESS, VMess, and Shadowsocks Work Correctly / اتصال خروجی (Outbound) پروتکل Trojan کار نمیکند، در حالی که VLESS، VMess و Shadowsocks بهدرستی …