[tor-bugs] #7600 [Tor]: Edit curr torrc: comments # in the configuration file will lead to " Error at line 1: "" "

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 1 09:35:48 UTC 2012


#7600: Edit curr torrc: comments # in the configuration file will lead to " Error
at line 1: ""  "
----------------------------------+-----------------------------------------
 Reporter:  steve45king           |          Owner:               
     Type:  defect                |         Status:  new          
 Priority:  normal                |      Milestone:               
Component:  Tor                   |        Version:  Tor: 0.2.2.39
 Keywords:  torrc comments error  |         Parent:               
   Points:                        |   Actualpoints:               
----------------------------------+-----------------------------------------
 When a comment line is at the beginning or somewhere else in the config-
 file, you will receive an error ("Error at line 1" when the comments are
 at the beginning)

 Workaround:
 1) Delete comments prior to saving the file (using "apply all" setting)
 2) mark all configuration parameters except the comments and use option
 "Apply selection only"

 Option "Save settings" is set to on.
 OS: Windows7

 Here is an example with a config-file with comments:


 # This file was generated by Tor; if you edit it, comments will not be
 preserved
 # The old torrc file was renamed to torrc.orig.1 or similar, and Tor will
 ignore it

 AvoidDiskWrites 1
 ControlPort 9051
 DataDirectory C:/Users/Admin/Downloads/Tor Browser/Data/Tor
 DirReqStatistics 0
 ExitNodes {ch},{ru},{bg}
 GeoIPFile .\Data\Tor\geoip
 Log notice stdout
 SocksListenAddress 127.0.0.1

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


More information about the tor-bugs mailing list