X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_p2p%2Fapt_p2p.py;h=0063e9fffd2ebb08373be003c346c4d90c950d63;hp=887f136a52c1453c5b3e35751cfae6c7823a1ff4;hb=9a8119cf7bb5dbdea853a694c84aee7e638aa287;hpb=6d23f1559df1435172f1da25ae0f57ae11a24bde diff --git a/apt_p2p/apt_p2p.py b/apt_p2p/apt_p2p.py index 887f136..0063e9f 100644 --- a/apt_p2p/apt_p2p.py +++ b/apt_p2p/apt_p2p.py @@ -80,7 +80,7 @@ class AptP2P: self.http_server = TopLevel(self.cache_dir.child(download_dir), self.db, self, config.getint('DEFAULT', 'UPLOAD_LIMIT')) self.getHTTPFactory = self.http_server.getHTTPFactory - self.peers = PeerManager() + self.peers = PeerManager(self.cache_dir, self.dht) self.mirrors = MirrorManager(self.cache_dir, config.gettime('DEFAULT', 'UNLOAD_PACKAGES_CACHE')) other_dirs = [FilePath(f) for f in config.getstringlist('DEFAULT', 'OTHER_DIRS')] self.cache = CacheManager(self.cache_dir.child(download_dir), self.db, other_dirs, self)