add quic-go-disable-ecn
to experimental
This commit is contained in:
parent
0523f63d1a
commit
712cf5b2ec
2 changed files with 5 additions and 1 deletions
|
@ -159,6 +159,7 @@ type Sniffer struct {
|
||||||
type Experimental struct {
|
type Experimental struct {
|
||||||
Fingerprints []string `yaml:"fingerprints"`
|
Fingerprints []string `yaml:"fingerprints"`
|
||||||
QUICGoDisableGSO bool `yaml:"quic-go-disable-gso"`
|
QUICGoDisableGSO bool `yaml:"quic-go-disable-gso"`
|
||||||
|
QUICGoDisableECN bool `yaml:"quic-go-disable-ecn"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config is clash config manager
|
// Config is clash config manager
|
||||||
|
|
|
@ -180,7 +180,10 @@ func updateListeners(general *config.General, listeners map[string]C.InboundList
|
||||||
|
|
||||||
func updateExperimental(c *config.Config) {
|
func updateExperimental(c *config.Config) {
|
||||||
if c.Experimental.QUICGoDisableGSO {
|
if c.Experimental.QUICGoDisableGSO {
|
||||||
_ = os.Setenv("QUIC_GO_DISABLE_GSO", "1")
|
_ = os.Setenv("QUIC_GO_DISABLE_GSO", strconv.FormatBool(true))
|
||||||
|
}
|
||||||
|
if c.Experimental.QUICGoDisableECN {
|
||||||
|
_ = os.Setenv("QUIC_GO_DISABLE_ECN", strconv.FormatBool(true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue