mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6885] [Feature]: Automatic detection of the server's IPv6 address when obtaining an SSL certificate for an IP address. #4571
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#4571
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 @alinasrollahzadeh405-sudo on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6885
Is your feature request related to a problem?
Hello. @MHSanaei, please add a feature to automatically detect the server's IPv6 address when obtaining an SSL certificate for an IP. This would improve efficiency and save users from the difficult task of manually entering IPv6 addresses—especially since data centers often provide IPv6 addresses as a range! Also, it would be helpful to allow this step to be confirmed or skipped via a simple
y/nprompt. Thank you for your efforts and for the work of all the contributors!Describe the solution you'd like
Please add an automatic IPv6 detection feature within the SSL certificate management section of the terminal. Additionally, provide the user with the option to accept or decline this step by displaying a prompt such as: "Your server's IPv6 address has been detected. Would you like to include it in the SSL certificate? (y/n)" or "IPv6 detected; include it in the SSL certificate? (y/n)." Thank you!
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Oct 21, 2026):
This is a valid feature request. Right now the IP-certificate flow finds your IPv4 address automatically, but for IPv6 it only gives you an empty prompt. Nothing on the IPv6 side is detected or offered for you to confirm.
What the code does today (
x-uimenu → SSL Certificate Management → option 6, which callsssl_cert_issue_for_ipinx-ui.sh):api4.ipify.org,ipv4.icanhazip.com, …,x-ui.sh:1552-1569) and asks you to confirm the result with a y/n prompt: (x-ui.sh:1573)x-ui.sh:1593). If you type something, it is added as a second-dSAN (x-ui.sh:1640-1644).install.sh:954shows the same manual prompt (it can be pre-filled with theXUI_SSL_IPV6environment variable for non-interactive installs).So what you're asking for is to give IPv6 the same treatment as IPv4: detect the address, then ask "include it? (y/n)". Some things for whoever implements it, based on the code above:
ip -6 addr show scope global). One thing about your "range" point: a data center usually routes a whole /64 to the server, but a certificate covers single addresses. The detected address has to be the one clients actually connect to, which is why the IPv4 path already asks for confirmation.is_ipv6only checks that the value contains a colon (x-ui.sh:43-45), so anything detected should be validated more strictly before it goes intodomain_args.acme.sh --issuecall (x-ui.sh:1687-1694) does not pass$(acme_listen_flag), unlike the domain flows (install.sh:456,install.sh:756). Whether acme.sh's standalone listener answers on IPv6 in that case depends on acme.sh/socat behaviour I did not check here. Anyone adding auto-inclusion should test it on a dual-stack host.Until this exists, you can paste the address at the existing prompt.
ip -6 addr show scope globallists the server's global IPv6 addresses.Related, but a different request: #4948 (IPv6 addresses in subscriptions when the certificate only covers IPv4).
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.
@HamedSanaei commented on GitHub (Oct 27, 2026):
I've implemented automatic IPv6 detection for IP-based SSL certificate issuance.
The implementation detects eligible IPv6 addresses, allows the user to confirm or skip the detected address, and retains manual entry when needed.
It also preserves the existing IPv4 certificate flow and non-interactive installation behavior.
I included validation and regression tests covering IPv6 discovery, address selection, and ACME certificate issuance scenarios.
PR: https://github.com/MHSanaei/3x-ui/pull/6971
Feedback and testing on dual-stack servers are welcome.