admin_net will not affect localhost connections
Massimo Melina committed
Nov 7, 2024 at 21:11 UTC
4380615ea8d63385c8c81b6a906ee15aa586f2c5
1 file changed
+1
-1
src/adminApis.ts
+1
-1
@@ -200,5 +200,5 @@ export function anyAccountCanLoginAdmin() {
200
}
201
202
export function allowAdmin(ctx: Koa.Context) {
203
- return adminNet.compiled()(ctx.ip)
203
+ return isLocalHost(ctx) || adminNet.compiled()(ctx.ip)
204
}
\ No newline at end of file