mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-03 16:44:15 +00:00
Transport TLS: Support ECH
This commit is contained in:
parent
781aaee21f
commit
4c7ca8beff
5 changed files with 33 additions and 13 deletions
|
@ -389,6 +389,7 @@ type TLSConfig struct {
|
|||
PinnedPeerCertificateChainSha256 *[]string `json:"pinnedPeerCertificateChainSha256"`
|
||||
PinnedPeerCertificatePublicKeySha256 *[]string `json:"pinnedPeerCertificatePublicKeySha256"`
|
||||
MasterKeyLog string `json:"masterKeyLog"`
|
||||
ECHConfig string `json:"echConfig"`
|
||||
}
|
||||
|
||||
// Build implements Buildable.
|
||||
|
@ -444,6 +445,7 @@ func (c *TLSConfig) Build() (proto.Message, error) {
|
|||
}
|
||||
|
||||
config.MasterKeyLog = c.MasterKeyLog
|
||||
config.EchConfig = c.ECHConfig
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue