Skip to content

Commit

Permalink
Use DormantTimeoutEnabled=0 instead of DirPort hack
Browse files Browse the repository at this point in the history
Replace the ancient DirPort hack with the DormantTimeoutEnabled=0 option
(tor >= 0.4.6.x), which is the proper way to ensure consensus updates
even if tor is otherwise unused on the gateway.

Fixes #51
  • Loading branch information
rustybird committed Nov 28, 2024
1 parent dc36d44 commit 93608e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/corridor-data
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ receive_consensus() {
# timeout in case of ignoreeof
socat -T 1073741824 "$CTRL",crnl -,ignoreeof <<-END || :
AUTHENTICATE `auth`
SETCONF DirPort="127.0.0.1:9030 NoAdvertise"
SETCONF DormantTimeoutEnabled=0
GETINFO config/defaults
GETINFO ns/all
SETEVENTS NEWCONSENSUS
Expand Down

0 comments on commit 93608e0

Please sign in to comment.