# Directory to store the downloaded files in
'CACHE_DIR': home + '/.apt-dht/cache',
+ # Other directories containing packages to share with others
+ # WARNING: all files in these directories will be hashed and available
+ # for everybody to download
+ 'OTHER_DIRS': """""",
+
# User name to try and run as
'USERNAME': '',
+
+ # Whether it's OK to use an IP addres from a known local/private range
+ 'LOCAL_OK': 'no',
# Which DHT implementation to use.
# It must be possile to do "from <DHT>.DHT import DHT" to get a class that
# implements the IDHT interface.
'DHT': 'apt_dht_Khashmir',
- # Whether to only run the DHT (for providing a login node)
+ # Whether to only run the DHT (for providing only a bootstrap node)
'DHT-ONLY': 'no',
}
DHT_DEFAULTS = {
# bootstrap nodes to contact to join the DHT
'BOOTSTRAP': """www.camrdale.org:9977
- steveholt.hopto.org:9977""",
+ steveholt.hopto.org:9976""",
+
+ # whether this node is a bootstrap node
+ 'BOOTSTRAP_NODE': "no",
# Kademlia "K" constant, this should be an even number
'K': '8',
# expire entries older than this
'KE_AGE': '1h', # 60 minutes
+
+ # whether to spew info about the requests/responses in the protocol
+ 'SPEW': 'yes',
}
class AptDHTConfigParser(SafeConfigParser):