[or-cvs] We were refusing to start if you define SocksListenAddress

arma at seul.org arma at seul.org
Fri Nov 11 22:41:09 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
We were refusing to start if you define SocksListenAddress
but define SocksPort to be 0. But this is a standard configuration!
So don't fail.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.445
retrieving revision 1.446
diff -u -d -r1.445 -r1.446
--- config.c	11 Nov 2005 17:04:14 -0000	1.445
+++ config.c	11 Nov 2005 22:41:07 -0000	1.446
@@ -1747,8 +1747,10 @@
   if (options->DirPort == 0 && options->DirListenAddress != NULL)
     REJECT("DirPort must be defined if DirListenAddress is defined.");
 
+#if 0 /* don't complain, since a standard configuration does this! */
   if (options->SocksPort == 0 && options->SocksListenAddress != NULL)
     REJECT("SocksPort must be defined if SocksListenAddress is defined.");
+#endif
 
   if (validate_data_directory(options)<0)
     REJECT("Invalid DataDirectory");



More information about the tor-commits mailing list