mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 14:46:50 +00:00
chore: improve ZeroTier reliability and throughput under load
This commit is contained in:
1 parent
c7089c0041
commit
7ff65441be
3 files changed
+11
-8
No files matched your search
@@ -32,8 +32,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
zeroTierDefaultStateDir = "zerotier"
|
||||
zeroTierFrameQueueSize = 256
|
||||
zeroTierDefaultStateDir = "zerotier"
|
||||
// zeroTierFrameQueueSize absorbs short multi-flow bursts so data frames do
|
||||
// not crowd handshake and window-update traffic out of the single ordered
|
||||
// bridge consumer.
|
||||
zeroTierFrameQueueSize = 2048
|
||||
zeroTierFrameDropLogInterval = 10 * time.Second
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ require (
|
||||
github.com/metacubex/jls-tls v0.0.0-20260723084315-67adc0e2f796
|
||||
github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604
|
||||
github.com/metacubex/mhurl v0.1.0
|
||||
github.com/metacubex/mipstack v0.0.0-20260803070649-a2001d7c0218
|
||||
github.com/metacubex/mipstack v0.0.0-20260804110607-0c9ab6d15fac
|
||||
github.com/metacubex/mlkem v0.1.0
|
||||
github.com/metacubex/quic-go v0.61.1-0.20260727080200-2548683b76f4
|
||||
github.com/metacubex/randv2 v0.2.0
|
||||
@@ -48,7 +48,7 @@ require (
|
||||
github.com/metacubex/tls v0.1.7
|
||||
github.com/metacubex/utls v1.8.7
|
||||
github.com/metacubex/wireguard-go v0.0.0-20250820062549-a6cecdd7f57f
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260802035217-01508220020d
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260804111226-0ced244971ee
|
||||
github.com/mroth/weightedrand/v2 v2.1.0
|
||||
github.com/openacid/low v0.1.21
|
||||
github.com/rasky/go-lzo v0.0.0-20200203143853-96a758eda86e
|
||||
|
||||
@@ -134,8 +134,8 @@ github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604 h1:hJwCVlE3ojViC3
|
||||
github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604/go.mod h1:lpmN3m269b3V5jFCWtffqBLS4U3QQoIid9ugtO+OhVc=
|
||||
github.com/metacubex/mhurl v0.1.0 h1:ZdW4Zxe3j3uJ89gNytOazHu6kbHn5owutN/VfXOI8GE=
|
||||
github.com/metacubex/mhurl v0.1.0/go.mod h1:2qpQImCbXoUs6GwJrjuEXKelPyoimsIXr07eNKZdS00=
|
||||
github.com/metacubex/mipstack v0.0.0-20260803070649-a2001d7c0218 h1:+Ff/0GLRhCvjIS42gsslmTCN8310WFYVdB5f2nRr7+Y=
|
||||
github.com/metacubex/mipstack v0.0.0-20260803070649-a2001d7c0218/go.mod h1:+bbwALZI0pbi2auSG5A3ptdpV2DZ2eLObziXo+P7oj0=
|
||||
github.com/metacubex/mipstack v0.0.0-20260804110607-0c9ab6d15fac h1:L8OBuMhRIsWGl1k9rXL5fmU/pnEIJ6qYRMgGdNMEMKA=
|
||||
github.com/metacubex/mipstack v0.0.0-20260804110607-0c9ab6d15fac/go.mod h1:+bbwALZI0pbi2auSG5A3ptdpV2DZ2eLObziXo+P7oj0=
|
||||
github.com/metacubex/mlkem v0.1.0 h1:wFClitonSFcmipzzQvax75beLQU+D7JuC+VK1RzSL8I=
|
||||
github.com/metacubex/mlkem v0.1.0/go.mod h1:amhaXZVeYNShuy9BILcR7P0gbeo/QLZsnqCdL8U2PDQ=
|
||||
github.com/metacubex/nftables v0.0.0-20260426003805-208c2c1ba2cb h1:wk6mHYPURSUvWcUv72gNP79oiylFsscBSDPJ6ieV6Iw=
|
||||
@@ -186,8 +186,8 @@ github.com/metacubex/wireguard-go v0.0.0-20250820062549-a6cecdd7f57f h1:FGBPRb1z
|
||||
github.com/metacubex/wireguard-go v0.0.0-20250820062549-a6cecdd7f57f/go.mod h1:oPGcV994OGJedmmxrcK9+ni7jUEMGhR+uVQAdaduIP4=
|
||||
github.com/metacubex/yamux v0.0.0-20250918083631-dd5f17c0be49 h1:lhlqpYHopuTLx9xQt22kSA9HtnyTDmk5XjjQVCGHe2E=
|
||||
github.com/metacubex/yamux v0.0.0-20250918083631-dd5f17c0be49/go.mod h1:MBeEa9IVBphH7vc3LNtW6ZujVXFizotPo3OEiHQ+TNU=
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260802035217-01508220020d h1:PQ0DLu0a4QVqVecbwu6qrEWkxs29IrEUvuIyt9/jchY=
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260802035217-01508220020d/go.mod h1:8LxQupX5KaZ6lIcBMdaJ3u5xx7+OIRyq87uyyFA1Yto=
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260804111226-0ced244971ee h1:6IeUZwA135uUuIet7i3XiAMRydybI00MqLBA650nwVE=
|
||||
github.com/metacubex/zerotier-go v0.0.0-20260804111226-0ced244971ee/go.mod h1:8LxQupX5KaZ6lIcBMdaJ3u5xx7+OIRyq87uyyFA1Yto=
|
||||
github.com/miekg/dns v1.1.63 h1:8M5aAw6OMZfFXTT7K5V0Eu5YiiL8l7nUAkyN6C9YwaY=
|
||||
github.com/miekg/dns v1.1.63/go.mod h1:6NGHfjhpmr5lt3XPLuyfDJi5AXbNIPM9PY6H6sF1Nfs=
|
||||
github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=
|
||||
|
||||
Reference in new issue
Block a user