0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

Add option realitySettings.masterKeyLog

This commit is contained in:
Qi Lin
2024-01-11 14:36:13 +08:00
committed by yuhan6665
parent 961cf9d3b1
commit 0ea2a50264
5 changed files with 44 additions and 13 deletions

View File

@ -420,6 +420,7 @@ func (c *TLSConfig) Build() (proto.Message, error) {
type REALITYConfig struct {
Show bool `json:"show"`
MasterKeyLog string `json:"masterKeyLog"`
Dest json.RawMessage `json:"dest"`
Type string `json:"type"`
Xver uint64 `json:"xver"`
@ -440,6 +441,7 @@ type REALITYConfig struct {
func (c *REALITYConfig) Build() (proto.Message, error) {
config := new(reality.Config)
config.Show = c.Show
config.MasterKeyLog = c.MasterKeyLog
var err error
if c.Dest != nil {
var i uint16