mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-10-26 13:07:08 +09:00
Pull request 2682: AGDNS-4104-fix-tls-endpoints-do-not-register
Squashed commit of the following:
commit 9dfeb2cbb6a107a66518a432b33edb1343fd70b7
Merge: cc748c030 5d3859bd3
Author: Maksim Kazantsev <m.kazantsev@adguard.com>
Date: Wed Jun 17 17:52:41 2026 +0300
Merge branch 'master' into AGDNS-4104-fix-tls-endpoints-do-not-register
commit cc748c03049be48d8135dc9151b933949a80ede1
Author: Maksim Kazantsev <m.kazantsev@adguard.com>
Date: Wed Jun 17 16:42:07 2026 +0300
home: add todo;
commit d7d94b48200993ffd1d5ded7a8f7c954b1be6ee2
Author: Maksim Kazantsev <m.kazantsev@adguard.com>
Date: Wed Jun 17 16:07:16 2026 +0300
home: fix tls endpoints do not register
This commit is contained in:
1 parent
5d3859bd36
commit
922a7aaf02
2 files changed
+3
No files matched your search
@@ -553,6 +553,7 @@ func (web *webAPI) finalizeInstall(
|
||||
web.conf.BindAddr = netip.AddrPortFrom(req.Web.IP, req.Web.Port)
|
||||
|
||||
web.registerControlHandlers()
|
||||
web.registerTLSHandlers()
|
||||
|
||||
aghhttp.OK(ctx, l, w)
|
||||
|
||||
|
||||
@@ -469,6 +469,8 @@ func startPprof(baseLogger *slog.Logger, port uint16) {
|
||||
}
|
||||
|
||||
// registerTLSHandlers registers HTTP handlers for TLS configuration.
|
||||
//
|
||||
// TODO(m.kazantsev): Consider uniting with registerControlHandlers.
|
||||
func (web *webAPI) registerTLSHandlers() {
|
||||
web.httpReg.Register(http.MethodGet, "/control/tls/status", web.handleTLSStatus)
|
||||
web.httpReg.Register(http.MethodPost, "/control/tls/configure", web.handleTLSConfigure)
|
||||
|
||||
Reference in new issue
Block a user