home: imp docs

This commit is contained in:
Stanislav Chzhen 2025-07-08 19:03:44 +03:00
parent 4633c8991c
commit 610c6fc45d

View File

@ -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 {