From caab33ace1eb9b75b3ff07787bb8deb68d8d1b18 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Thu, 16 Jul 2026 04:13:38 +0800 Subject: [PATCH] Delete .github/diy/packages/xray-core/patches/AllowInsecure.patch --- .../xray-core/patches/AllowInsecure.patch | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 .github/diy/packages/xray-core/patches/AllowInsecure.patch diff --git a/.github/diy/packages/xray-core/patches/AllowInsecure.patch b/.github/diy/packages/xray-core/patches/AllowInsecure.patch deleted file mode 100644 index b43b5618..00000000 --- a/.github/diy/packages/xray-core/patches/AllowInsecure.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/infra/conf/transport_internet.go -+++ b/infra/conf/transport_internet.go -@@ -14,7 +14,6 @@ import ( - "strconv" - "strings" - "syscall" -- "time" - - "github.com/xtls/xray-core/common" - "github.com/xtls/xray-core/common/errors" -@@ -699,12 +698,7 @@ func (c *TLSConfig) Build() (proto.Message, error) { - config.MasterKeyLog = c.MasterKeyLog - - if c.AllowInsecure { -- if time.Now().After(time.Date(2026, 6, 1, 0, 0, 0, 0, time.UTC)) { -- return nil, errors.PrintRemovedFeatureError(`"allowInsecure"`, `"pinnedPeerCertSha256"`) -- } else { -- errors.LogWarning(context.Background(), `"allowInsecure" will be removed automatically after 2026-06-01, please use "pinnedPeerCertSha256"(pcs) and "verifyPeerCertByName"(vcn) instead, PLEASE CONTACT YOUR SERVICE PROVIDER (AIRPORT)`) -- config.AllowInsecure = true -- } -+ config.AllowInsecure = true - } - if c.PinnedPeerCertSha256 != "" { - for v := range strings.SplitSeq(c.PinnedPeerCertSha256, ",") {