Ignore:
Timestamp:
11/14/09 22:58:47 (3 years ago)
Author:
eagle
Message:

do not connect root peers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/garlicat/src/ocat.h

    r526 r528  
    102102 
    103103#define IP6HLEN sizeof(struct ip6_hdr) 
    104 /*//! TOR prefix: FD87:D87E:EB43::/48 
    105 #define TOR_PREFIX {{{0xfd,0x87,0xd8,0x7e,0xeb,0x43,0,0,0,0,0,0,0,0,0,0}}} 
    106 #define TOR_PREFIX_LEN 48 
    107 #if BYTE_ORDER == LITTLE_ENDIAN 
    108 #define TOR_PREFIX4 {0x0000000a} 
    109 #define TOR_PREFIX4_MASK 0x000000ff 
    110 #else 
    111 #define TOR_PREFIX4 {0x0a000000} 
    112 #define TOR_PREFIX4_MASK 0xff000000 
    113 #endif*/ 
    114104//! Length of an .onion-URL (without ".onion" and '\0') 
    115105#define ONION_URL_LEN 16 
    116 /*//! Total length of .onion-URL 
    117 #define ONION_NAME_SIZE (ONION_URL_LEN + 7) 
    118 //! Total length of .onion-URL (equal to ONION_NAME_SIZE) 
    119 #define ONION_NAME_LEN ONION_NAME_SIZE*/ 
    120106 
    121107#define MAXPEERS 1024 
    122 /*//! Local listening port for incoming connections from TOR. 
    123 #define OCAT_LISTEN_PORT 8060 
    124 //! Local control port for querying status information. 
    125 #define OCAT_CTRL_PORT 8066 
    126 //! Virtual destination port for hidden services 
    127 #define OCAT_DEST_PORT 8060 
    128 //! SOCKS port of TOR proxy 
    129 #define TOR_SOCKS_PORT 9050*/ 
    130108#ifdef __OpenBSD__ 
    131109#define OCAT_UNAME "_tor" 
     
    285263   int use_syslog; 
    286264   int daemon; 
     265#ifdef CONNECT_ROOT_PEERS 
    287266   //! hardcoded permanent peers 
    288267#define ROOT_PEERS 1 
    289268   struct in6_addr root_peer[ROOT_PEERS]; 
     269#endif 
    290270   time_t uptime; 
    291271   char *frandn; 
Note: See TracChangeset for help on using the changeset viewer.