mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 18:16:47 +00:00
chore: use mihomo name & ver to tailscale reported ver to avoid update prompts (#2801)
This commit is contained in:
1 parent
a531449b84
commit
d60b336dfc
1 file changed
+5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user