mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4936] [Bug]: no https in subs QR #3456
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#3456
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 @reza74ta-spec on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4936
Describe the bug
provided subscription url from QR code does not contain https and causing problem
How to reproduce the problem
.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.7
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
@github-actions[bot] commented on GitHub (Jun 5, 2026):
Thanks for the report. I traced the relevant code to explain what is happening and how to fix it.
Root cause
The subscription URL scheme (
httpvshttps) is determined byBuildSubURIBaseinweb/service/setting.go. It checks only whether TLS certificate and key files are configured for the subscription server specifically (subCertFile+subKeyFile). The panel's own main TLS certificate (configured under Settings → Panel → Certs) is a separate setting and does not affect the subscription URL scheme. WhensubCertFile/subKeyFileare empty (the default after a fresh install), the subscription URL is alwayshttp://.Two ways to get
https://in subscription QR codesOption A — Configure TLS for the subscription server (recommended if sub server has its own port/cert)
/etc/letsencrypt/live/yourdomain.com/fullchain.pemandprivkey.pem).x-ui restartorsystemctl restart x-ui).Once both paths are set,
BuildSubURIBasewill emithttps://automatically.Option B — Override the subscription URI manually
This bypasses the auto-detection entirely — the value you enter is used verbatim.
Clarification needed
To give more targeted advice, could you share:
This will help confirm which option above best applies to your setup.