fix(auth): clarify LAN auth and mobile guidance (#2035)
* fix(auth): clarify LAN auth and mobile guidance * chore: retrigger PR checks --------- Co-authored-by: bashrusakh <bashrusakh@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
bashrusakh
parent
d5745aaac9
commit
0d4118e87a
@@ -176,6 +176,10 @@ const isLocalHost = (host, req) => {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isPrivateOrLoopbackIp(host)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (host === 'host.docker.internal') {
|
||||
return isPrivateOrLoopbackIp(getSocketRemoteIp(req));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user