mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 16:34:52 +03:00
feat(ssl): auto-detect IPv6 for IP certificates
Discover eligible local IPv6 addresses with explicit interactive consent and preserve unattended IPv4 defaults. Embed shared helpers in both standalone scripts, verify dual-stack listeners and IP SAN/key identity, and preserve live certificates and prior panel state on failure. Add rootless regression coverage, CI checks, and SSL documentation.
This commit is contained in:
@@ -10,6 +10,11 @@ on:
|
||||
- ".nvmrc"
|
||||
- "Makefile"
|
||||
- ".github/workflows/ci.yml"
|
||||
- "install.sh"
|
||||
- "x-ui.sh"
|
||||
- "scripts/lib/ip-ssl.sh"
|
||||
- "scripts/sync-ip-ssl-helpers.sh"
|
||||
- "scripts/test/**"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -21,6 +26,11 @@ on:
|
||||
- ".nvmrc"
|
||||
- "Makefile"
|
||||
- ".github/workflows/ci.yml"
|
||||
- "install.sh"
|
||||
- "x-ui.sh"
|
||||
- "scripts/lib/ip-ssl.sh"
|
||||
- "scripts/sync-ip-ssl-helpers.sh"
|
||||
- "scripts/test/**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -311,11 +321,21 @@ jobs:
|
||||
# the panel ships are linted by the shellcheck step below.
|
||||
run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 -color -shellcheck=
|
||||
- name: Install shellcheck
|
||||
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
||||
run: sudo apt-get update && sudo apt-get install -y shellcheck socat
|
||||
- name: shellcheck
|
||||
run: |
|
||||
shellcheck --severity=style DockerInit.sh DockerEntrypoint.sh deploy/test/smoke-noninteractive.sh
|
||||
shellcheck --severity=error install.sh update.sh x-ui.sh
|
||||
shellcheck --severity=style -e SC1091 scripts/lib/ip-ssl.sh scripts/sync-ip-ssl-helpers.sh scripts/test/ip-ssl-*.sh
|
||||
- name: IP certificate regressions (no ACME orders)
|
||||
run: |
|
||||
bash -n install.sh
|
||||
bash -n x-ui.sh
|
||||
bash scripts/sync-ip-ssl-helpers.sh --check
|
||||
bash scripts/test/ip-ssl-test.sh
|
||||
bash scripts/test/ip-ssl-entrypoint-test.sh
|
||||
IP_SSL_LINUX_TEST=1 bash scripts/test/ip-ssl-listener-test.sh
|
||||
bash scripts/test/ip-ssl-certificate-test.sh
|
||||
|
||||
frontend:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user