On Thu, Sep 14, 2017 at 09:56:19PM +0800, Stu Midgley wrote: > and of course... their was a similar test in dht-bootstrap . > > I have removed both tests and they at least talk to each other.
I think I'll make a new setting allowing DHT and bittorrent to private networks (off by default). -- Alexander. > On Thu, Sep 14, 2017 at 9:48 PM, Stu Midgley <sdm...@gmail.com> wrote: > > > Right... and line 743,1131 in DHT.cc and 575,586 in Torrent.cc > > > > I modified the is_private function in network.cc to > > > > bool sockaddr_u::is_private() const > > > > { > > > > if(sa.sa_family==AF_INET) > > > > { > > > > unsigned char *a=(unsigned char *)&in.sin_addr; > > > > return (0==1); > > > > } > > > > #if INET6 > > > > if(family()==AF_INET6) { > > > > return IN6_IS_ADDR_SITELOCAL(&in6.sin6_addr) > > > > || IN6_IS_ADDR_LINKLOCAL(&in6.sin6_addr); > > > > } > > > > #endif > > > > return false; > > > > } > > > > > > > > and it still didn't work. > > > > > > On Thu, Sep 14, 2017 at 9:25 PM, Alexander V. Lukyanov <l...@netis.ru> > > wrote: > > > >> On Thu, Sep 14, 2017 at 09:12:40PM +0800, Stu Midgley wrote: > >> > Thanks for the quick response. > >> > > >> > I started the bootstrap-dht and the lftp client and server on the single > >> > machine (172.16.250.40) which is a machine without external access to > >> the > >> > internet (hence why I want to run my own dht bootstrap service. > >> ... > >> > I don't see lftp contacting the bootstrap service. > >> > >> It appears that lftp refuses to talk DHT to private IP addresses (see > >> DHT.cc:296). I don't know if that's correct, but I was thinking about > >> security of private networks when I coded this. > >> > >> -- > >> Alexander. > >> > > > > > > > > -- > > Dr Stuart Midgley > > sdm...@gmail.com > > > > > > -- > Dr Stuart Midgley > sdm...@gmail.com > _______________________________________________ > lftp mailing list > lftp@uniyar.ac.ru > http://univ.uniyar.ac.ru/mailman/listinfo/lftp _______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp