mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 01:13:56 +08:00
Delete .github/diy/packages/xray-core/patches/AllowInsecure.patch
This commit is contained in:
1 parent
ba111a8078
commit
126e5ee37d
1 file changed
-24
@@ -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, ",") {
|
|
||||||
Reference in new issue
Block a user