home = os.path.expanduser('~')
if not os.path.isdir(home):
home = os.path.abspath(os.path.dirname(sys.argv[0]))
+DEFAULT_CONFIG_FILES=['/etc/apt-dht/apt-dht.conf',
+ home + '/.apt-dht/apt-dht.conf']
DEFAULTS = {
# 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