From 014c6bfe00d4f07144fb0a02915df7e0aa85630f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 11 Nov 2005 22:41:07 +0000 Subject: 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. svn:r5361 --- src/or/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or') diff --git a/src/or/config.c b/src/or/config.c index f0ea414e5..b1ad5f871 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1747,8 +1747,10 @@ options_validate(or_options_t *options) 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"); -- cgit v1.2.3