- if self.my_addr and hash:
- site = self.my_addr + ':' + str(config.getint('DEFAULT', 'PORT'))
- full_path = urlunparse(('http', site, urlpath, None, None, None))
+ if self.my_addr and hash and (hash.expected() is not None or forceDHT):
+ contact = compact(self.my_addr, config.getint('DEFAULT', 'PORT'))
+ value = {'c': contact}