GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Verified Commit 84126f7d authored by Philipp Winter's avatar Philipp Winter

Merge branch 'issue/12'

parents 6d3ae38c 88d8f0a8
......@@ -200,6 +200,16 @@ func (c *TorContext) TestBridgeLines(bridgeLines []string) *TestResult {
result := NewTestResult()
log.Printf("Testing %d bridge lines.", len(bridgeLines))
// By default, Tor enters dormant mode 24 hours after seeing no user
// activity. Bridgestrap's control port interaction doesn't count as user
// activity, which is why we explicitly wake up Tor before issuing our
// SETCONF. See the following issue for more details:
// https://gitlab.torproject.org/tpo/anti-censorship/bridgestrap/-/issues/12
if _, err := c.Ctrl.Request("SIGNAL ACTIVE"); err != nil {
result.Error = err.Error()
return result
}
// Create our SETCONF line, which tells Tor what bridges it should test.
// It has the following format:
// SETCONF Bridge="BRIDGE1" Bridge="BRIDGE2" ...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment