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

This commit is contained in:
JustSong
2025-02-11 01:18:44 +08:00
parent 9b45ba2505
commit dd782ec3ab

View File

@@ -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) {