File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ async def middleware(request: web.Request, handler: Any) -> web.Response:
9292 pass
9393 setattr (request , "custom_address" , address )
9494 start = time .perf_counter_ns ()
95- if config .const .disallow_public_dashboard and not address in ALLOW_IP and all (not request .path .startswith (path ) for path in WHITELIST_PATHS ):
95+ if config .const .disallow_public_dashboard and not address in ALLOW_IP and not all (not request .path .startswith (path ) for path in WHITELIST_PATHS ):
9696 return await asyncio .create_task (special_response ())
9797 resp : web .Response = None # type: ignore
9898 try :
@@ -122,8 +122,8 @@ async def special_response():
122122FINDING_FILTER = "127.0.0.1"
123123CHECK_PORT_SECRET = os .urandom (8 )
124124WHITELIST_PATHS = [
125- "/download"
126- "/measure"
125+ "/download/ "
126+ "/measure/ "
127127]
128128ALLOW_IP = [
129129 "127.0.0.1" ,
You can’t perform that action at this time.
0 commit comments