From afbea643e6136fee63623db5f5e38d7b112856a0 Mon Sep 17 00:00:00 2001 From: IzumiMasaharu <108920558+IzumiMasaharu@users.noreply.github.com> Date: Tue, 18 Feb 2025 13:05:05 +0800 Subject: [PATCH] fix: Resolved the issue of being unable to reset it to empty after using the proxy. (#2788) * Update proxy.ts * Update next.md * chore: auto-fix linting and formatting issues --------- Co-authored-by: Whitewater --- apps/main/src/lib/proxy.ts | 2 +- changelog/next.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/main/src/lib/proxy.ts b/apps/main/src/lib/proxy.ts index 38ef651b9..014e5daf9 100644 --- a/apps/main/src/lib/proxy.ts +++ b/apps/main/src/lib/proxy.ts @@ -37,7 +37,7 @@ const URL_SCHEME = new Set(["http:", "https:", "ftp:", "socks:", "socks4:", "soc const normalizeProxyUri = (userProxy: string) => { if (!userProxy) { - return + return "" } // Only use the first proxy if there are multiple urls const firstInput = userProxy.split(",")[0]! diff --git a/changelog/next.md b/changelog/next.md index 17888d80b..a4b22c23d 100644 --- a/changelog/next.md +++ b/changelog/next.md @@ -5,3 +5,5 @@ ## Improvements ## Bug Fixes + +- Resolved the issue of being unable to reset it to empty after using the proxy.