Browse Source

fix a byte order bug

svn:r1277
Roger Dingledine 21 years ago
parent
commit
6a2821a7ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -688,7 +688,7 @@ try_next_line:
 
 int is_internal_IP(uint32_t ip) {
 
-  if (((ip & 0xff000000) == 0xa0000000) || /*       10/8 */
+  if (((ip & 0xff000000) == 0x0a000000) || /*       10/8 */
       ((ip & 0xff000000) == 0x00000000) || /*        0/8 */
       ((ip & 0xff000000) == 0x7f000000) || /*      127/8 */
       ((ip & 0xffff0000) == 0xa9fe0000) || /* 169.254/16 */