浏览代码

Update main.py to enable http_proxy use for checking for new versions

mindspawn 11 月之前
父节点
当前提交
3069fa8074
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/main.py

+ 1 - 1
backend/main.py

@@ -902,7 +902,7 @@ async def get_app_changelog():
 @app.get("/api/version/updates")
 @app.get("/api/version/updates")
 async def get_app_latest_release_version():
 async def get_app_latest_release_version():
     try:
     try:
-        async with aiohttp.ClientSession() as session:
+        async with aiohttp.ClientSession(trust_env=True) as session:
             async with session.get(
             async with session.get(
                 "https://api.github.com/repos/open-webui/open-webui/releases/latest"
                 "https://api.github.com/repos/open-webui/open-webui/releases/latest"
             ) as response:
             ) as response: