[tor-bugs] #1929 [Tor Client]: Setting *Nodes config options more than once means last entry is used

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Sep 21 15:10:53 UTC 2010


#1929: Setting *Nodes config options more than once means last entry is used
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |       Owner:                    
     Type:  defect      |      Status:  needs_review      
 Priority:  minor       |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |     Version:                    
 Keywords:              |      Parent:                    
------------------------+---------------------------------------------------

Comment(by nickm):

 I'm not thrilled with the comment syntax; nothing else does comments that
 way.  If I understand right, the syntax is something like this?

 {{{
 ExcludeNodes \
 # Node1337 is run by the Bavarian Illuminati \
   Node1337, \
 # The operator of Node99 looked at me funny \
   Node99
 }}}

 It changes the meaning of # and \, since you can no longer interpret # as
 "Ignore the rest of the line" and you can no longer interpret \ as
 "combine this line and the next, then process".  Instead you need to treat
 # as meaning "Ignore the rest of the line except for a \ if the \ is at
 the end."  It also changes the semantics of previously valid torrcs, such
 as

 {{{
 ContactInfo UberUser <uber at user.com> # /// Don't use my real email here!
 \\\
 Log info file /home/nick.mathewson/projects/tor-info.log
 }}}

 Contrived, I admit.

 I'm okay saying either "No comments for you" here, or with adding a
 comment/continuation syntax that doesn't change the meaning of old torrcs.

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


More information about the tor-bugs mailing list