[PR #6448] [CLOSED] fix(frontproxy): restart the reverse proxy on a panel-only restart #6270

Closed
opened 2026-11-02 04:07:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6448
Author: @kuzzrus
Created: 9/10/2026
Status: ❌ Closed

Base: main ← Head: fix-restart-panel-frontproxy


📝 Commits (10+)

  • 89f17f6 fix(frontend): give AmneziaWG the same UDP tag and its own tag color
  • 5b58369 feat(logs): show which AmneziaWG client an access-log line belongs to
  • bb6a874 fix(amneziawg): enable sniffing on the TPROXY bridge
  • a903ca6 chore(release): bump version to 3.5.0-awg.5
  • d3da7ab fix: port the PR #6105 review-round fixes into this fork's own AmneziaWG code
  • 1b07dad fix(install.sh): check the live sysctl value, not sysctl.conf text
  • 98dce6e docs: catch up the "Other changes" changelog for two shipped fixes
  • 34c43c8 fix: address the automated review round on PR #6154
  • 9e42ec8 test: wrap renderWithProviders in QueryClientProvider
  • 8daf1d8 fix: harden the bin/ snapshot-and-restore against the review round on #6152

📊 Changes

326 files changed (+30747 additions, -29536 deletions)

View changed files

➖ .dockerignore (+0 -10)
📝 .github/ISSUE_TEMPLATE/bug_report.yaml (+0 -2)
📝 .github/ISSUE_TEMPLATE/feature_request.yaml (+0 -1)
📝 .github/ISSUE_TEMPLATE/question.yaml (+0 -1)
📝 .github/claude/repo-context.md (+1 -1)
📝 .github/pull_request_template.md (+0 -1)
📝 .github/workflows/ci.yml (+16 -2)
📝 .github/workflows/claude-bot.yml (+672 -543)
➖ .github/workflows/docker.yml (+0 -62)
➖ .github/workflows/docs-deploy.yml (+0 -77)
📝 .github/workflows/release.yml (+6 -138)
📝 .golangci.yml (+6 -0)
➖ DockerEntrypoint.sh (+0 -82)
➖ DockerInit.sh (+0 -58)
➖ Dockerfile (+0 -74)
➖ README.ar_EG.md (+0 -205)
➕ README.en_US.md (+212 -0)
➖ README.es_ES.md (+0 -206)
➖ README.fa_IR.md (+0 -206)
📝 README.md (+130 -124)

...and 80 more files

📄 Description

Summary

  • StopPanelOnly/StartPanelOnly (the SIGHUP handler behind the "Restart Panel" button) never stopped frontproxy.GetManager() — it lived inside stop()'s stopXray-gated sidecar block, so a panel-only restart skipped it entirely.
  • Manager.Start() then found its own still-running server and silently no-op'd, so a changed reverse-proxy domain, cert mode, port, or listen address could never actually take effect from the UI — only a real process restart (systemctl restart) rebuilds the listener.
  • Moved the StopAll() call out of the gated block so it pairs with start()'s already-unconditional FrontProxyService.AutoStart() — the door now rebuilds with current settings on every restart, panel-only included. The other sidecars (Tor/AmneziaWG/MTProto/Psiphon/AdGuard) are untouched and still correctly ride through a panel-only restart undisturbed, since they're unrelated to panel settings.

Found live while testing the reverse-proxy's auto TLS mode: after changing the configured domain and clicking "Restart Panel," the certificate status never updated — confirmed via the SIGHUP handler in main.go and Manager.Start()'s own "already running, no-op" guard that this restart path genuinely never touches frontproxy at all.

Test plan

  • gofmt -l clean on the changed file
  • go build ./... (blocked locally by an unrelated pre-existing CGO/sqlite3 driver mismatch on this Windows machine — same known limitation as every other DB-adjacent change this fork has shipped; relying on CI)
  • Live-verify on a real box: change the reverse-proxy domain/cert mode, click "Restart Panel" (not a full process restart), confirm the certificate is re-issued for the new domain and the panel/subscription paths still work through the door afterward

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6448 **Author:** [@kuzzrus](https://github.com/kuzzrus) **Created:** 9/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-restart-panel-frontproxy` --- ### 📝 Commits (10+) - [`89f17f6`](https://github.com/MHSanaei/3x-ui/commit/89f17f6fefc6f2a90eb809ef9a10846afd06ec50) fix(frontend): give AmneziaWG the same UDP tag and its own tag color - [`5b58369`](https://github.com/MHSanaei/3x-ui/commit/5b58369af24340b28b180b7b4776067163db14be) feat(logs): show which AmneziaWG client an access-log line belongs to - [`bb6a874`](https://github.com/MHSanaei/3x-ui/commit/bb6a874dc5db39b2730e2807cb85179692b1fa1a) fix(amneziawg): enable sniffing on the TPROXY bridge - [`a903ca6`](https://github.com/MHSanaei/3x-ui/commit/a903ca6793fe05537fed5f580fba22ca738a62a6) chore(release): bump version to 3.5.0-awg.5 - [`d3da7ab`](https://github.com/MHSanaei/3x-ui/commit/d3da7abdf04c6aa4d0df884e4e95603beefe1bd8) fix: port the PR #6105 review-round fixes into this fork's own AmneziaWG code - [`1b07dad`](https://github.com/MHSanaei/3x-ui/commit/1b07dadfb9eb15adb058c43fd284d179e7ed7bae) fix(install.sh): check the live sysctl value, not sysctl.conf text - [`98dce6e`](https://github.com/MHSanaei/3x-ui/commit/98dce6e5d45c3d95c7a4feb012c47ab90785ef2e) docs: catch up the "Other changes" changelog for two shipped fixes - [`34c43c8`](https://github.com/MHSanaei/3x-ui/commit/34c43c8a9d9427df6446a940d7bc988da71bba8a) fix: address the automated review round on PR #6154 - [`9e42ec8`](https://github.com/MHSanaei/3x-ui/commit/9e42ec82c66de97a14996300473efefde514b39c) test: wrap renderWithProviders in QueryClientProvider - [`8daf1d8`](https://github.com/MHSanaei/3x-ui/commit/8daf1d844d01eae98d659de94d15134796753ce3) fix: harden the bin/ snapshot-and-restore against the review round on #6152 ### 📊 Changes **326 files changed** (+30747 additions, -29536 deletions) <details> <summary>View changed files</summary> ➖ `.dockerignore` (+0 -10) 📝 `.github/ISSUE_TEMPLATE/bug_report.yaml` (+0 -2) 📝 `.github/ISSUE_TEMPLATE/feature_request.yaml` (+0 -1) 📝 `.github/ISSUE_TEMPLATE/question.yaml` (+0 -1) 📝 `.github/claude/repo-context.md` (+1 -1) 📝 `.github/pull_request_template.md` (+0 -1) 📝 `.github/workflows/ci.yml` (+16 -2) 📝 `.github/workflows/claude-bot.yml` (+672 -543) ➖ `.github/workflows/docker.yml` (+0 -62) ➖ `.github/workflows/docs-deploy.yml` (+0 -77) 📝 `.github/workflows/release.yml` (+6 -138) 📝 `.golangci.yml` (+6 -0) ➖ `DockerEntrypoint.sh` (+0 -82) ➖ `DockerInit.sh` (+0 -58) ➖ `Dockerfile` (+0 -74) ➖ `README.ar_EG.md` (+0 -205) ➕ `README.en_US.md` (+212 -0) ➖ `README.es_ES.md` (+0 -206) ➖ `README.fa_IR.md` (+0 -206) 📝 `README.md` (+130 -124) _...and 80 more files_ </details> ### 📄 Description ## Summary - `StopPanelOnly`/`StartPanelOnly` (the SIGHUP handler behind the "Restart Panel" button) never stopped `frontproxy.GetManager()` — it lived inside `stop()`'s `stopXray`-gated sidecar block, so a panel-only restart skipped it entirely. - `Manager.Start()` then found its own still-running server and silently no-op'd, so a changed reverse-proxy domain, cert mode, port, or listen address could never actually take effect from the UI — only a real process restart (`systemctl restart`) rebuilds the listener. - Moved the `StopAll()` call out of the gated block so it pairs with `start()`'s already-unconditional `FrontProxyService.AutoStart()` — the door now rebuilds with current settings on every restart, panel-only included. The other sidecars (Tor/AmneziaWG/MTProto/Psiphon/AdGuard) are untouched and still correctly ride through a panel-only restart undisturbed, since they're unrelated to panel settings. Found live while testing the reverse-proxy's `auto` TLS mode: after changing the configured domain and clicking "Restart Panel," the certificate status never updated — confirmed via the SIGHUP handler in `main.go` and `Manager.Start()`'s own "already running, no-op" guard that this restart path genuinely never touches frontproxy at all. ## Test plan - [x] `gofmt -l` clean on the changed file - [ ] `go build ./...` (blocked locally by an unrelated pre-existing CGO/sqlite3 driver mismatch on this Windows machine — same known limitation as every other DB-adjacent change this fork has shipped; relying on CI) - [ ] Live-verify on a real box: change the reverse-proxy domain/cert mode, click "Restart Panel" (not a full process restart), confirm the certificate is re-issued for the new domain and the panel/subscription paths still work through the door afterward 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:34 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6270
No description provided.