chore: use mihomo name & ver to tailscale reported ver to avoid update prompts (#2801)

This commit is contained in:
ayanamist authored and GitHub committed 2026-05-18 10:44:01 +08:00
1 parent a531449b84
commit d60b336dfc
1 file changed
+5
+5
View File
@@ -21,8 +21,10 @@ import (
"github.com/metacubex/mihomo/log"
"github.com/metacubex/tailscale/envknob"
"github.com/metacubex/tailscale/hostinfo"
"github.com/metacubex/tailscale/ipn"
"github.com/metacubex/tailscale/net/netmon"
"github.com/metacubex/tailscale/tailcfg"
"github.com/metacubex/tailscale/tsnet"
D "github.com/miekg/dns"
)
@@ -62,6 +64,9 @@ type TailscaleOption struct {
}
func init() {
hostinfo.RegisterHostinfoNewHook(func(hi *tailcfg.Hostinfo) {
hi.IPNVersion = C.MihomoName + " " + C.Version
})
envknob.SetNoLogsNoSupport()
if runtime.GOOS == "android" { // Android SDK 30 no longer permits Go's net.Interfaces to work (Issue 2293)
netmon.RegisterInterfaceGetter(func() (nif []netmon.Interface, err error) {