Parcourir la source

feat: allow non-https when CHANNEL_URL_ALLOW_NON_HTTPS is true (close #153)

JustSong il y a 8 mois
Parent
commit
dd782ec3ab
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      web/src/pages/Channel/EditChannel.js

+ 4 - 4
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) {