mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
home: imp docs
This commit is contained in:
parent
4633c8991c
commit
610c6fc45d
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user