@samitouri / QOSami-HFS-2 / commits / 4380615e
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

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