avoid using ' in peer ids, since there are buggy trackers that don't support it
This commit is contained in:
parent
c459262c51
commit
1eda63c4f5
|
@ -310,8 +310,9 @@ namespace aux {
|
|||
, m_peer_id.begin());
|
||||
|
||||
// http-accepted characters:
|
||||
// excluding ', since some buggy trackers don't support that
|
||||
static char const printable[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz-_.!~*'()";
|
||||
"abcdefghijklmnopqrstuvwxyz-_.!~*()";
|
||||
|
||||
// the random number
|
||||
for (unsigned char* i = m_peer_id.begin() + print.length();
|
||||
|
|
Loading…
Reference in New Issue