Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func (adapter *Adapter) Proxies(servers []*node.Node) ([]Proxy, error) {
EncryptionPrivateKey: protocol.EncryptionPrivateKey,
EncryptionClientPadding: protocol.EncryptionClientPadding,
EncryptionPassword: protocol.EncryptionPassword,
EchEnable: protocol.EchEnable,
EchServerName: protocol.EchServerName,
Ratio: protocol.Ratio,
CertMode: protocol.CertMode,
CertDNSProvider: protocol.CertDNSProvider,
Expand Down
4 changes: 4 additions & 0 deletions adapter/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ type Proxy struct {
EncryptionClientPadding string // encryption client padding
EncryptionPassword string // encryption password

// ECH
EchEnable bool // ECH enable
EchServerName string // ECH SNI

Ratio float64 // Traffic ratio, default is 1
CertMode string // Certificate mode, `none`|`http`|`dns`|`self`
CertDNSProvider string // DNS provider for certificate
Expand Down
2 changes: 2 additions & 0 deletions internal/model/node/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ type Protocol struct {
EncryptionPrivateKey string `json:"encryption_private_key,omitempty"` // encryption private key
EncryptionClientPadding string `json:"encryption_client_padding,omitempty"` // encryption client padding
EncryptionPassword string `json:"encryption_password,omitempty"` // encryption password
EchEnable bool `json:"ech_enable,omitempty"` // ECH enable
EchServerName string `json:"ech_server_name,omitempty"` // ECH SNI

Ratio float64 `json:"ratio,omitempty"` // Traffic ratio, default is 1
CertMode string `json:"cert_mode,omitempty"` // Certificate mode, `none`|`http`|`dns`|`self`
Expand Down
2 changes: 2 additions & 0 deletions internal/types/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading