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
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp