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

[tor-bugs] #1806 [Tor - Relay]: Multiple Warnings Emmitted for Config Abbreviations



#1806: Multiple Warnings Emmitted for Config Abbreviations
-------------------------+--------------------------------------------------
 Reporter:  atagar       |       Owner:     
     Type:  defect       |      Status:  new
 Priority:  minor        |   Milestone:     
Component:  Tor - Relay  |     Version:     
 Keywords:               |      Parent:     
-------------------------+--------------------------------------------------
 The torrc and GETCONF accepts command abbreviations (for instance
 "ControlPo" instead of "ControlPort"). This was a mistake since it results
 in ambiguity for similarly named commands (for instance does "Socks" match
 "SocksPort" or "SocksBindAddress"?). Hence, use of this is discouraged and
 results in a warning.

 Warnings are emitted in the 'expand_abbrev' function of 'or/config.c'
 (line 1353). The problem is that this is a getter function, called for a
 variety of purposes like GETCONF. This means that controllers may
 accidentally spam users with warnings by requesting an alias repeatedly.

 In my opinion the proper handling of this is to either remember the
 warnings we've given (avoiding duplication), or even better to just
 provide warnings when reading in the torrc. Cheers! -Damian

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1806>
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