BG5 commited on
Commit
09df818
·
verified ·
1 Parent(s): a9aec05

Update fun.py

Browse files
Files changed (1) hide show
  1. fun.py +1 -1
fun.py CHANGED
@@ -7,7 +7,7 @@ import websockets
7
  app = FastAPI()
8
 
9
  TARGET_BASE = "http://127.0.0.1:9222" # 目标服务器(Chrome DevTools)
10
- TARGET_WS_BASE = "ws://127.0.0.1" # WebSocket 目标
11
 
12
  @app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"])
13
  async def proxy(request: Request, path: str):
 
7
  app = FastAPI()
8
 
9
  TARGET_BASE = "http://127.0.0.1:9222" # 目标服务器(Chrome DevTools)
10
+ TARGET_WS_BASE = "ws://127.0.0.1:9222" # WebSocket 目标
11
 
12
  @app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"])
13
  async def proxy(request: Request, path: str):