[tor-bugs] #1751 [Tor Relay]: Project: Make it harder to use exits as one-hop proxies

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Sep 25 23:18:19 UTC 2010


#1751: Project: Make it harder to use exits as one-hop proxies
-----------------------+----------------------------------------------------
 Reporter:  nickm      |       Owner:                     
     Type:  task       |      Status:  needs_review       
 Priority:  normal     |   Milestone:  Deliverable-Sep2010
Component:  Tor Relay  |     Version:                     
 Keywords:             |      Parent:                     
-----------------------+----------------------------------------------------

Comment(by arma):

 {{{
 +  } else if ((consensus = networkstatus_get_latest_consensus()) != NULL)
 {
 +    return networkstatus_get_param(consensus, "refuseunknownexits", 1);
 +  } else {
 +    return 1;
 +  }
 }}}

 You're in luck! You can hand networkstatus_get_param() NULL and it will
 look up the consensus, returning the default if no consensus.

 Also, that means you should do something about referencing
 <b>consensus</b> in the function comment (I thought that was only for
 function arguments anyway).

 So this could become
 {{{
   }
   return networkstatus_get_param(NULL, "refuseunknownexits", 1);
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1751#comment:24>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list