X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht%2Fapt_dht.py;h=749396b3a36f9b3922c79af4c30bc487f5572594;hp=047d1c2b815dbf7c3d3643244c5f04fa9b8d0fad;hb=61a8482b596a221a97e0f3cdcc7452468bee85f1;hpb=056a62b7b55e95a3a50d64d2e769d29b9eede4a9;ds=sidebyside diff --git a/apt_dht/apt_dht.py b/apt_dht/apt_dht.py index 047d1c2..749396b 100644 --- a/apt_dht/apt_dht.py +++ b/apt_dht/apt_dht.py @@ -42,7 +42,9 @@ class AptDHT: return self.http_site def joinComplete(self, result): - self.my_addr = findMyIPAddr(result, config.getint(config.get('DEFAULT', 'DHT'), 'PORT')) + self.my_addr = findMyIPAddr(result, + config.getint(config.get('DEFAULT', 'DHT'), 'PORT'), + config.getboolean('DEFAULT', 'LOCAL_OK')) if not self.my_addr: raise RuntimeError, "IP address for this machine could not be found" self.cache.scanDirectories()