Add a warning about the use of insecure HTTP protocol subscription address

This commit is contained in:
2dust
2024-10-25 11:06:04 +08:00
parent 0efb0b5e3e
commit 78d182fff3
7 changed files with 50 additions and 4 deletions
+3 -1
View File
@@ -1340,7 +1340,9 @@ namespace ServiceLib.Handler
//Do not allow http protocol
if (url.StartsWith(Global.HttpProtocol) && !Utils.IsPrivateNetwork(uri.IdnHost))
{
return -1;
//TODO Temporary reminder to be removed later
NoticeHandler.Instance.Enqueue(ResUI.InsecureUrlProtocol);
//return -1;
}
var queryVars = Utils.ParseQueryString(uri.Query);