[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs