Created
January 11, 2021 16:03
-
-
Save NullPointerMaker/b863e817634a2c308012bee7ee1b12f2 to your computer and use it in GitHub Desktop.
Revisions
-
NullPointerMaker created this gist
Jan 11, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ 网上有很多文章说 Tor 配置文件 `torrc` 里的 `MaxCircuitDirtiness` 参数是更换 IP 的间隔。这是不对的。 https://2019.www.torproject.org/docs/tor-manual.html 写得很清楚,是链路是否重用的间隔。它们不一样。 在使用 Tor 时,Tor 会建立有入口节点有中间节点有出口节点的链路。而在已经建立链路的情况下,客户端新发起的请求会重用这个链路。 `MaxCircuitDirtiness` 参数的作用是设置链路在多久后不再受理新的请求。但请注意,如果这个链路上旧的请求尚未结束,例如长轮询、WebSocket,那么过期后它也不会断开,只是不再被新的请求使用。因此,会发生一直不更换链路的情况。 更换 IP,也就是更换出口节点。限制它的频率参数是 `TrackHostExits` 和 `TrackHostExitsExpire`。 其中前者设置哪些域名、IP 需要控制节点时限。