소스 검색

Use | with flags, not +.

Nick Mathewson 16 년 전
부모
커밋
a38ed1a235
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/or/config.c

+ 2 - 2
src/or/config.c

@@ -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.");