feat: add etag-support to let user can disable this feature manually

This commit is contained in:
wwqgtxx
2024-09-22 14:41:45 +08:00
parent b7cb6774bf
commit ddfa9e8671
3 changed files with 24 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ import (
"github.com/metacubex/mihomo/component/profile"
"github.com/metacubex/mihomo/component/profile/cachefile"
"github.com/metacubex/mihomo/component/resolver"
"github.com/metacubex/mihomo/component/resource"
"github.com/metacubex/mihomo/component/sniffer"
tlsC "github.com/metacubex/mihomo/component/tls"
"github.com/metacubex/mihomo/component/trie"
@@ -172,6 +173,7 @@ func GetGeneral() *config.General {
Sniffing: tunnel.IsSniffing(),
GlobalClientFingerprint: tlsC.GetGlobalFingerprint(),
GlobalUA: mihomoHttp.UA(),
ETagSupport: resource.ETag(),
}
return general