aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-05 14:30:06 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-05 14:30:06 +0000
commit585ae267836326b50d33372f0129bc6fac1d1ad5 (patch)
tree5f36deb1929e9dc9a507c4dc08b13516fc9098c5 /src/or/config.c
parent4b8f9780be5ea0037ad2febb75ae5e32e14aff25 (diff)
downloadtor-585ae267836326b50d33372f0129bc6fac1d1ad5.tar.gz
tor-585ae267836326b50d33372f0129bc6fac1d1ad5.zip
patch from tup
svn:r8321
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index fd480a839d..29f41ee3bb 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2073,6 +2073,9 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (options->ControlPort == 0 && options->ControlListenAddress != NULL)
REJECT("ControlPort must be defined if ControlListenAddress is defined.");
+ if (options->TransPort == 0 && options->TransListenAddress != NULL)
+ REJECT("TransPort must be defined if TransListenAddress 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.");