mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
Add option realitySettings.masterKeyLog
This commit is contained in:
parent
961cf9d3b1
commit
0ea2a50264
5 changed files with 44 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue