diff --git a/config/config.go b/config/config.go index e240f9b90..5ea45a392 100644 --- a/config/config.go +++ b/config/config.go @@ -159,6 +159,7 @@ type Sniffer struct { type Experimental struct { Fingerprints []string `yaml:"fingerprints"` QUICGoDisableGSO bool `yaml:"quic-go-disable-gso"` + QUICGoDisableECN bool `yaml:"quic-go-disable-ecn"` } // Config is clash config manager diff --git a/hub/executor/executor.go b/hub/executor/executor.go index a50d35391..ebcbac91e 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -180,7 +180,10 @@ func updateListeners(general *config.General, listeners map[string]C.InboundList func updateExperimental(c *config.Config) { 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)) } }