From dd782ec3abd07b5c381024c6a230f43d22d45fc2 Mon Sep 17 00:00:00 2001 From: JustSong Date: Tue, 11 Feb 2025 01:18:44 +0800 Subject: [PATCH] feat: allow non-https when CHANNEL_URL_ALLOW_NON_HTTPS is true (close #153) --- web/src/pages/Channel/EditChannel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js index 3cd9394..ccaab27 100644 --- a/web/src/pages/Channel/EditChannel.js +++ b/web/src/pages/Channel/EditChannel.js @@ -86,10 +86,10 @@ const EditChannel = () => { } break; case 'custom': - if (!localInputs.url.startsWith('https://')) { - showError('自定义通道的 URL 必须以 https:// 开头!'); - return; - } + // if (!localInputs.url.startsWith('https://')) { + // showError('自定义通道的 URL 必须以 https:// 开头!'); + // return; + // } try { JSON.parse(localInputs.other); } catch (e) {