From fe003fcb19c4e20b395fc342a6044a6d8e66b490 Mon Sep 17 00:00:00 2001 From: wyx2685 Date: Thu, 24 Jul 2025 01:04:15 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E7=AD=89=E5=BE=85xray?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/xray/inbound.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/xray/inbound.go b/core/xray/inbound.go index 780b90c..3c3312a 100644 --- a/core/xray/inbound.go +++ b/core/xray/inbound.go @@ -130,22 +130,17 @@ func buildInbound(option *conf.Options, nodeInfo *panel.NodeInfo, tag string) (* return nil, fmt.Errorf("marshal reality dest error: %s", err) } mtd, _ := time.ParseDuration(v.RealityConfig.MaxTimeDiff) - mldsa65Seed := v.TlsSettings.Mldsa65Seed - if mldsa65Seed == "" { - var seed [32]byte - rand.Read(seed[:]) - mldsa65Seed = base64.RawURLEncoding.EncodeToString(seed[:]) - } in.StreamSetting.REALITYSettings = &coreConf.REALITYConfig{ Dest: d, Xver: xver, + Show: false, ServerNames: []string{v.TlsSettings.ServerName}, PrivateKey: v.TlsSettings.PrivateKey, MinClientVer: v.RealityConfig.MinClientVer, MaxClientVer: v.RealityConfig.MaxClientVer, MaxTimeDiff: uint64(mtd.Microseconds()), ShortIds: []string{v.TlsSettings.ShortId}, - Mldsa65Seed: mldsa65Seed, + Mldsa65Seed: v.TlsSettings.Mldsa65Seed, } default: break