From 610c6fc45d2d8848e9b89afb0037b98d83106afa Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 8 Jul 2025 19:03:44 +0300 Subject: [PATCH] home: imp docs --- internal/home/authhttp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/home/authhttp.go b/internal/home/authhttp.go index 68c7b5c9..b8c7b551 100644 --- a/internal/home/authhttp.go +++ b/internal/home/authhttp.go @@ -109,8 +109,8 @@ func (web *webAPI) handleLogin(w http.ResponseWriter, r *http.Request) { } var remoteIP string - // realIP cannot be used here without taking TrustedProxies into account due - // to security issues. + // The real IP address of the client [realIP] cannot be used here without + // taking trusted proxies into account due to security issues: // // See https://github.com/AdguardTeam/AdGuardHome/issues/2799. if remoteIP, err = netutil.SplitHost(r.RemoteAddr); err != nil { @@ -489,8 +489,8 @@ func (mw *authMiddlewareDefault) userFromRequestBasicAuth( } var remoteIP string - // realIP cannot be used here without taking TrustedProxies into account due - // to security issues. + // The real IP address of the client [realIP] cannot be used here without + // taking trusted proxies into account due to security issues: // // See https://github.com/AdguardTeam/AdGuardHome/issues/2799. if remoteIP, err = netutil.SplitHost(r.RemoteAddr); err != nil {