mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 19:39:35 +03:00
Add option realitySettings.masterKeyLog
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user