X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=apt_dht%2Fapt_dht_conf.py;h=fb2be962d5334a7e9c0bd26da8d22c1c29f0f069;hb=f510a1c7954bf43a8817b92c31e05bdb3a891dd5;hp=98bbd884358bbd1b09ae69945e500d8fd9b06b68;hpb=e6beef78406c3093fc4eb98c4293b9257b44aa61;p=quix0rs-apt-p2p.git diff --git a/apt_dht/apt_dht_conf.py b/apt_dht/apt_dht_conf.py index 98bbd88..fb2be96 100644 --- a/apt_dht/apt_dht_conf.py +++ b/apt_dht/apt_dht_conf.py @@ -16,6 +16,8 @@ if home == '${HOME}' or not os.path.isdir(home): 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 = { @@ -25,8 +27,16 @@ DEFAULTS = { # 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 import DHT" to get a class that