MHSanaei 说明 3x-ui 双栈证书 PR 修订了签发失败处理

MHSanaei 表示,3x-ui 的 IP 证书 IPv6 检测 PR 已更新:签发失败或 XUI_SSL_IPV6 无效时,报告问题并继续通过 HTTP 完成安装;账户注册失败恢复为警告。为避免失败的新增 IPv6 签发破坏既有 IPv4 证书续期,助手会备份并在失败时恢复原续期条目,首次签发失败则删除残留条目。他称相关 shell 回归已以 nobody 用户在 Debian 13、Ubuntu 22.04 和 AlmaLinux 8 上通过,并核对了真实 iproute2 输出。PR 尚未合并,仍缺少公网 IPv4/IPv6 的 80 端口均可达时,以 acme.sh 3.1.5+ 完成双栈签发及 cron 续期的验证。

作者原文

I pushed three commits to this branch (1eba41cb..26e1cd0f) for the open review findings:

  • Installer no longer stops when the IP certificate fails. A failed order, or an invalid XUI_SSL_IPV6, is reported and the install carries on over HTTP, as it did before this branch. config_after_install and its three call sites are back to main's flow, and a failed --register-account is a warning again.
  • A failed order no longer breaks renewal of the certificate already in place. acme.sh saves the requested names before it places the order, so the helper now backs up the <ipv4> / <ipv4>_ecc renewal entry and restores it when the order fails; a failed first order's entry is removed so cron does not retry it daily.
  • Docs and the Go/shell regressions follow the new behaviour (TestInstallerSSLFailureKeepsServiceSetup, the entry-point and certificate shell tests).

Run here: the shell suite passes as nobody on Debian 13, Ubuntu 22.04 and AlmaLinux 8, and detection was checked against real iproute2 output (public addresses offered, fd00::/8 and 2001:db8::/32 filtered).

Not merged yet. What is still missing is a real issuance: a host with a public IPv6 address and port 80 reachable on both families, one successful dual-stack order with acme.sh 3.1.5+, and one renewal by cron. If someone can run that and post the output, this can go in.