mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix: 缺少mldsa65参数导致无法启动
This commit is contained in:
@@ -130,6 +130,12 @@ 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,
|
||||
@@ -139,6 +145,7 @@ func buildInbound(option *conf.Options, nodeInfo *panel.NodeInfo, tag string) (*
|
||||
MaxClientVer: v.RealityConfig.MaxClientVer,
|
||||
MaxTimeDiff: uint64(mtd.Microseconds()),
|
||||
ShortIds: []string{v.TlsSettings.ShortId},
|
||||
Mldsa65Seed: mldsa65Seed,
|
||||
}
|
||||
default:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user