Use | with flags, not +.

This commit is contained in:
Nick Mathewson 2009-05-13 16:43:51 -04:00
parent 9e97067b2f
commit a38ed1a235
1 changed files with 2 additions and 2 deletions

View File

@ -3240,8 +3240,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
if ((options->BridgeRelay
|| options->_PublishServerDescriptor & BRIDGE_AUTHORITY)
&& options->_PublishServerDescriptor
& (V1_AUTHORITY + V2_AUTHORITY + V3_AUTHORITY)) {
&& (options->_PublishServerDescriptor
& (V1_AUTHORITY|V2_AUTHORITY|V3_AUTHORITY))) {
REJECT("Bridges are not supposed to publish router descriptors to the "
"directory authorities. Please correct your "
"PublishServerDescriptor line.");