We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sing-box/outbound/urltest.go
Line 300 in 619aad0
此处为何是minDelay > history.Delay-g.tolerance而不是minDelay < history.Delay-g.tolerance?
minDelay > history.Delay-g.tolerance
minDelay < history.Delay-g.tolerance
如果写成minDelay > history.Delay-g.tolerance,跟minDelay > history.Delay+g.tolerance“或运算”在一起的minDelay > history.Delay+g.tolerance || minDelay > history.Delay-g.tolerance就等效于一个minDelay > history.Delay-g.tolerance,也就是这整行代码等效于:
minDelay > history.Delay+g.tolerance
minDelay > history.Delay+g.tolerance || minDelay > history.Delay-g.tolerance
if minDelay == 0 || minDelay > history.Delay-g.tolerance && minTime.Before(history.Time) {
确定不是写错了?
另外,能否根据代码详细解释一下URLTest选择出站节点的算法?
The text was updated successfully, but these errors were encountered:
44277e5
Sorry, something went wrong.
No branches or pull requests
sing-box/outbound/urltest.go
Line 300 in 619aad0
此处为何是
minDelay > history.Delay-g.tolerance
而不是minDelay < history.Delay-g.tolerance
?如果写成
minDelay > history.Delay-g.tolerance
,跟minDelay > history.Delay+g.tolerance
“或运算”在一起的minDelay > history.Delay+g.tolerance || minDelay > history.Delay-g.tolerance
就等效于一个minDelay > history.Delay-g.tolerance
,也就是这整行代码等效于:确定不是写错了?
另外,能否根据代码详细解释一下URLTest选择出站节点的算法?
The text was updated successfully, but these errors were encountered: