[tor-bugs] #12538 [Tor]: Make all relays automatically be dir caches
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Nov 3 17:56:28 UTC 2014
#12538: Make all relays automatically be dir caches
-------------------------+-------------------------------------------------
Reporter: | Owner:
cypherpunks | Status: needs_review
Type: task | Milestone: Tor: 0.2.6.x-final
Priority: normal | Version: Tor: unspecified
Component: Tor | Keywords: tor-guard, tor-relay, prop237
Resolution: | 026-triaged-1
Actual Points: | Parent ID:
Points: |
-------------------------+-------------------------------------------------
Comment (by dgoulet):
I'm wondering if it would be useful to have "is_directory_server()"
function that could take a routerinfo_t and test that object to see if
it's a directory instead of the "options" object parsing?
It could then be used with "desc_routerinfo" object representing our
router information thus fixing the semantic "issue".
Also, I'm a big fan of namespacing function with the file name so this
function is in "router.c" and public thus maybe should be called
"router_is_directory_server()" ? (unless there is a coding rules I'm not
aware of)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12538#comment:19>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list