feat: add check_tolerance to make node selection stable

This commit is contained in:
mzz2017
2023-02-09 21:16:51 +08:00
parent e3a71d0ee2
commit 158dfb2a27
6 changed files with 33 additions and 19 deletions

View File

@ -196,6 +196,7 @@ func NewControlPlane(
TcpCheckOptionRaw: dialer.TcpCheckOptionRaw{Raw: global.TcpCheckUrl},
UdpCheckOptionRaw: dialer.UdpCheckOptionRaw{Raw: global.UdpCheckDns},
CheckInterval: global.CheckInterval,
CheckTolerance: global.CheckTolerance,
}
outbounds := []*outbound.DialerGroup{
outbound.NewDialerGroup(option, consts.OutboundDirect.String(),