Node support for Tor hidden services

This commit adds support for .onion addresses (mapped into the IPv6
by using OnionCat's range and encoding), and the ability to connect
to them via a SOCKS5 proxy.
This commit is contained in:
Pieter Wuille
2012-04-29 02:11:56 +02:00
parent e0be8da392
commit 70f7f00385
5 changed files with 94 additions and 21 deletions

View File

@@ -704,7 +704,7 @@ string DecodeBase64(const string& str)
string EncodeBase32(const unsigned char* pch, size_t len)
{
static const char *pbase32 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
static const char *pbase32 = "abcdefghijklmnopqrstuvwxyz234567";
string strRet="";
strRet.reserve((len+4)/5*8);