diff --git a/nonebot/drivers/websockets.py b/nonebot/drivers/websockets.py index 826e7994a3e3..4790f22decee 100644 --- a/nonebot/drivers/websockets.py +++ b/nonebot/drivers/websockets.py @@ -69,6 +69,8 @@ def type(self) -> str: @override @asynccontextmanager async def websocket(self, setup: Request) -> AsyncGenerator["WebSocket", None]: + if setup.proxy is not None: + logger.warning("proxy is not supported by websockets driver") connection = Connect( str(setup.url), extra_headers={**setup.headers, **setup.cookies.as_header(setup)},