mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 20:52:15 +08:00
feat: Add disable quic-go GSO to experimental
This commit is contained in:
parent
7286391883
commit
90acce7fa1
@ -156,7 +156,8 @@ type Sniffer struct {
|
|||||||
|
|
||||||
// Experimental config
|
// Experimental config
|
||||||
type Experimental struct {
|
type Experimental struct {
|
||||||
Fingerprints []string `yaml:"fingerprints"`
|
Fingerprints []string `yaml:"fingerprints"`
|
||||||
|
QUICGoDisableGSO bool `yaml:"quic-go-disable-gso"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config is clash config manager
|
// Config is clash config manager
|
||||||
|
@ -55,6 +55,13 @@ keep-alive-interval: 15
|
|||||||
|
|
||||||
# routing-mark:6666 # 配置 fwmark 仅用于 Linux
|
# routing-mark:6666 # 配置 fwmark 仅用于 Linux
|
||||||
experimental:
|
experimental:
|
||||||
|
# Disable quic-go GSO support. This may result in reduced performance on Linux.
|
||||||
|
# This is not recommended for most users.
|
||||||
|
# Only users encountering issues with quic-go's internal implementation should enable this,
|
||||||
|
# and they should disable it as soon as the issue is resolved.
|
||||||
|
# This field will be removed when quic-go fixes all their issues in GSO.
|
||||||
|
# This equivalent to the environment variable QUIC_GO_DISABLE_GSO=1.
|
||||||
|
#quic-go-disable-gso: true
|
||||||
|
|
||||||
# 类似于 /etc/hosts, 仅支持配置单个 IP
|
# 类似于 /etc/hosts, 仅支持配置单个 IP
|
||||||
hosts:
|
hosts:
|
||||||
|
@ -181,6 +181,9 @@ func updateListeners(general *config.General, listeners map[string]C.InboundList
|
|||||||
}
|
}
|
||||||
|
|
||||||
func updateExperimental(c *config.Config) {
|
func updateExperimental(c *config.Config) {
|
||||||
|
if c.Experimental.QUICGoDisableGSO {
|
||||||
|
_ = os.Setenv("QUIC_GO_DISABLE_GSO", "1")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateNTP(c *config.NTP) {
|
func updateNTP(c *config.NTP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user