diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-07 06:51:46 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-07 06:51:46 +0000 |
commit | 8f01b643c342d59a27d6a378f8a473a320e8ca20 (patch) | |
tree | 33aa50f2b31381be0a7df8982a53803a437dab79 /src | |
parent | 0f49fd3bcde9ae2a548cd0ab5dfc7ecddb79cc60 (diff) | |
download | tor-8f01b643c342d59a27d6a378f8a473a320e8ca20.tar.gz tor-8f01b643c342d59a27d6a378f8a473a320e8ca20.zip |
ORPort must be defined if ORBindAddress is defined.
svn:r3100
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index a7aaf023a5..5994e6e807 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1137,6 +1137,12 @@ options_validate(or_options_t *options) result = -1; } + /* XXX might similarly want to check the other *BindAddress options */ + if (options->ORPort == 0 && options->ORBindAddress != NULL) { + log(LOG_WARN, "ORPort must be defined if ORBindAddress is defined."); + result = -1; + } + if (validate_data_directory(options)<0) { log(LOG_WARN, "Invalid DataDirectory"); result = -1; |