mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6835] [Bug]: عدم کارکرد Fallback در صورت روشن کردن Proxy Protocol #4547
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#4547
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 @URT19 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6835
Describe the bug
درود
برای راه اندازی سرویس فالبک ، وقتی که سرویس های روی 127.0.0.1 ، تیک
Proxy Protocol
رو فعال میکنم، کانفیگ کار نمیده
ولی وقتی که خاموش میکنم بدرستی کار میده
از آخرین نسخه استفاده شد
How to reproduce the problem
https://www.youtube.com/watch?v=jK7E-5yv_2s
طبق این آموزش رفتم جلو
هر کاری میکردم توی حالت فالبک اتصال برای اینباندهای وابسته برقرار نمیشد
با خاموش کردن
Proxy Protocol
مشکل رفع شد
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
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):
نتیجه: وقتی تیک Proxy Protocol را روی اینباند مقصد (روی
127.0.0.1) روشن میکنید، باید در ردیف Fallback همان اینباند در اینباند اصلی، مقدارxverرا هم روی1یا2بگذارید. پنل این مقدار را خودکار پر نمیکند و همیشه0میگذارد. باxver = 0، اینباند اصلی هدر PROXY را برای مقصد نمیفرستد، ولی مقصد منتظر آن هدر است و اتصال برقرار نمیشود. این همان چیزی است که دیدید: با خاموش کردن Proxy Protocol مشکل برطرف میشود.راهحل فعلی:
xverرا روی
1یا2بگذارید و ذخیره کنید.xverرا روی0نگه دارید.نمیتوانم تصویر پیوست را باز کنم. اگر با
xverغیرصفر هم کار نکرد، لطفاً بخشfallbacksاز کانفیگ Xray اینباند اصلی وstreamSettingsاینباند مقصد را بهصورت متن (با حذف اطلاعات حساس) بفرستید.Suggested fix: in
deriveFallbackDefaults, read the child'sstreamSettings.sockopt.acceptProxyProtocoland the transport-levelacceptProxyProtocol(tcpSettings/wsSettings/httpupgradeSettings), and return a non-zeroxverwhen either is set, as the comment already says it should. That only covers rows auto-filled from now on. A fallback that is already wired and whose child turns Proxy Protocol on later would still be broken. A warning in the Fallbacks card when a row hasxver0 and its child accepts PROXY would cover that case too.این پاسخ بهصورت خودکار تولید شده است؛ ممکن است نگهدارندهی پروژه پیگیری کند.
@URT19 commented on GitHub (Oct 16, 2026):
xver کجا تعیین میشه؟
الان من میخوام وب سوکت بسازم ، جایی وجود نداره برای انتخابش
@mvanhorn commented on GitHub (Oct 20, 2026):
deriveFallbackDefaults always stored xver 0 and ignored acceptProxyProtocol on the child, both on sockopt and on the settings block for the network in use.
deriveFallbackDefaults now returns xver 1 when acceptProxyProtocol is boolean true on sockopt, or on the active transport block: tcpSettings for tcp and raw, wsSettings for ws, and httpupgradeSettings for httpupgrade.
https://github.com/MHSanaei/3x-ui/pull/6880