Compare commits

..

3 Commits

Author SHA1 Message Date
renovate[bot]
0decb158f6
[dependencies] Update golangci/golangci-lint-action action to v8 2025-06-12 01:13:51 +00:00
Restia-Ashbell
61dc853128
Add ECH support for uTLS 2025-06-12 09:13:23 +08:00
世界
36b6c364c8
documentation: Bump version 2025-06-12 08:58:25 +08:00
4 changed files with 7 additions and 8 deletions

View File

@ -102,6 +102,12 @@ func reloadECHKeys(echKeyPath string, tlsConfig *tls.Config) error {
return nil
}
type ECHCapableConfig interface {
Config
ECHConfigList() []byte
SetECHConfigList([]byte)
}
type ECHClientConfig struct {
ECHCapableConfig
access sync.Mutex

View File

@ -11,12 +11,6 @@ import (
"github.com/cloudflare/circl/kem"
)
type ECHCapableConfig interface {
Config
ECHConfigList() []byte
SetECHConfigList([]byte)
}
func ECHKeygenDefault(serverName string) (configPem string, keyPem string, err error) {
cipherSuites := []echCipherSuite{
{

View File

@ -10,7 +10,7 @@ import (
E "github.com/sagernet/sing/common/exceptions"
)
func parseECHClientConfig(ctx context.Context, clientConfig ECHCapableConfig, options option.OutboundTLSOptions) (Config, error) {
func parseECHClientConfig(ctx context.Context, options option.OutboundTLSOptions, tlsConfig *tls.Config) (Config, error) {
return nil, E.New("ECH requires go1.24, please recompile your binary.")
}

View File

@ -6,7 +6,6 @@ icon: material/alert-decagram
* Allow `tls_fragment` and `tls_record_fragment` to be enabled together **1**
* Also add fragment options for TLS client configuration **2**
* Fixes and improvements
**1**: