mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
resolve a XXX
svn:r4783
This commit is contained in:
parent
11bc97801d
commit
00c2ba4841
@ -1515,11 +1515,18 @@ options_validate(or_options_t *options)
|
|||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX might similarly want to check the other *BindAddress options */
|
|
||||||
if (options->ORPort == 0 && options->ORBindAddress != NULL) {
|
if (options->ORPort == 0 && options->ORBindAddress != NULL) {
|
||||||
log(LOG_WARN, "ORPort must be defined if ORBindAddress is defined.");
|
log(LOG_WARN, "ORPort must be defined if ORBindAddress is defined.");
|
||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
if (options->DirPort == 0 && options->DirBindAddress != NULL) {
|
||||||
|
log(LOG_WARN, "DirPort must be defined if DirBindAddress is defined.");
|
||||||
|
result = -1;
|
||||||
|
}
|
||||||
|
if (options->SocksPort == 0 && options->SocksBindAddress != NULL) {
|
||||||
|
log(LOG_WARN, "SocksPort must be defined if SocksBindAddress is defined.");
|
||||||
|
result = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (validate_data_directory(options)<0) {
|
if (validate_data_directory(options)<0) {
|
||||||
log(LOG_WARN, "Invalid DataDirectory");
|
log(LOG_WARN, "Invalid DataDirectory");
|
||||||
|
Loading…
Reference in New Issue
Block a user