mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6855] [Bug]: Share link uses the panel domain as address instead of the WS inbound's domain #4556
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#4556
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 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6855
Describe the bug
یک کانفیگ
VLESS WS TLS
ساختم
ولی توی کلاینت آدرس دامین اصلی پنل رو برمیگردونه
برای رفع این مشکل باید از طریق تعریف
host
اقدام کنم
How to reproduce the problem
یک اینباند با یک دامین غیر از دامین پنل بسازید
سرتیفیکت همون دامین رو هم وارد میکنم
ولی آدرس اصلی کانفیگ رو از پنل میگیره
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
UBUNTU24
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 16, 2026):
این رفتار باگ نیست. فیلد
hostدر تنظیمات WebSocket (و همینطور SNI در TLS) فقط هدر/نام سرور است و پنل هیچوقت آن را بهعنوان آدرس اتصال لینک استفاده نمیکند. آدرس لینک از گزینهٔ «راهبرد آدرس اشتراکگذاری» اینباند تعیین میشود و اگر چیزی تنظیم نشده باشد، به دامنهٔ پنل/ساب برمیگردد — همان چیزی که شما دیدید.(تصاویر را نمیتوانم باز کنم؛ این تحلیل بر اساس متن و JSON گزارش است. عنوان قبلی «عدم جایگذاری درست host» را برای روشنتر شدن مشکل اصلاح کردم.)
راهحل — در فرم ویرایش اینباند:
راههای دیگر: گذاشتن همین دامنه در فیلد
listenاینباند همراه با راهبرد «آدرس شنود ورودی»، یا External Proxy، یا تعریف یک Host برای این اینباند (همان روشی که خودتان پیدا کردید).Verdict: Not a bug (user configuration)
Severity: N/A
Confidence: High
Root cause: None — the share-link address never comes from
wsSettings.hostor the TLS SNI; with no node/listen/custom address set,resolveInboundAddressfalls back to the configured Sub/Web domain, then the request host.Same class: None found
Already fixed: Not applicable
Duplicate of: None
Evidence:
internal/sub/service.go:1671-1686— candidates are only node / listen / custom, then the panel domain:internal/sub/service.go:263-270—configuredPublicHostreturnsGetSubDomain()thenGetWebDomain(): this is the "main panel domain" the reporter sees.internal/sub/service.go:1751-1753— the WShostis written only as the link'shostparameter (applyPathAndHostParams(ws, params)), not the address.frontend/src/lib/xray/inbound-link.ts:1346-1353— the panel's copy/QR link uses the same order (customAddr || nodeAddr || listenAddr || fallbackAddrforcustom).frontend/src/pages/inbounds/form/InboundFormModal.tsx:678-705— theshareAddrStrategy/shareAddrfields in the inbound form.Not determined: None
این پاسخ بهصورت خودکار تولید شده است؛ ممکن است نگهدارنده بعداً پیگیری کند.