mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-07-25 07:24:07 +08:00
Compare commits
3 Commits
0decb158f6
...
c985206169
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c985206169 | ||
![]() |
0e5f1814cc | ||
![]() |
d8e1cd0d51 |
@ -102,12 +102,6 @@ func reloadECHKeys(echKeyPath string, tlsConfig *tls.Config) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type ECHCapableConfig interface {
|
|
||||||
Config
|
|
||||||
ECHConfigList() []byte
|
|
||||||
SetECHConfigList([]byte)
|
|
||||||
}
|
|
||||||
|
|
||||||
type ECHClientConfig struct {
|
type ECHClientConfig struct {
|
||||||
ECHCapableConfig
|
ECHCapableConfig
|
||||||
access sync.Mutex
|
access sync.Mutex
|
||||||
|
@ -11,6 +11,12 @@ import (
|
|||||||
"github.com/cloudflare/circl/kem"
|
"github.com/cloudflare/circl/kem"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ECHCapableConfig interface {
|
||||||
|
Config
|
||||||
|
ECHConfigList() []byte
|
||||||
|
SetECHConfigList([]byte)
|
||||||
|
}
|
||||||
|
|
||||||
func ECHKeygenDefault(serverName string) (configPem string, keyPem string, err error) {
|
func ECHKeygenDefault(serverName string) (configPem string, keyPem string, err error) {
|
||||||
cipherSuites := []echCipherSuite{
|
cipherSuites := []echCipherSuite{
|
||||||
{
|
{
|
@ -10,7 +10,7 @@ import (
|
|||||||
E "github.com/sagernet/sing/common/exceptions"
|
E "github.com/sagernet/sing/common/exceptions"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseECHClientConfig(ctx context.Context, options option.OutboundTLSOptions, tlsConfig *tls.Config) (Config, error) {
|
func parseECHClientConfig(ctx context.Context, clientConfig ECHCapableConfig, options option.OutboundTLSOptions) (Config, error) {
|
||||||
return nil, E.New("ECH requires go1.24, please recompile your binary.")
|
return nil, E.New("ECH requires go1.24, please recompile your binary.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ icon: material/alert-decagram
|
|||||||
|
|
||||||
* Allow `tls_fragment` and `tls_record_fragment` to be enabled together **1**
|
* Allow `tls_fragment` and `tls_record_fragment` to be enabled together **1**
|
||||||
* Also add fragment options for TLS client configuration **2**
|
* Also add fragment options for TLS client configuration **2**
|
||||||
|
* Fixes and improvements
|
||||||
|
|
||||||
**1**:
|
**1**:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user