mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
fix(vanitygen): base32 alphabet for check_prefix
Only [a-z2-7] characters are allowed in base32.
This commit is contained in:
parent
3cce59e528
commit
284b6777b2
|
@ -73,7 +73,7 @@ static bool check_prefix(const char * buf)
|
||||||
unsigned short size_str=0;
|
unsigned short size_str=0;
|
||||||
while(*buf)
|
while(*buf)
|
||||||
{
|
{
|
||||||
if(*buf < 48 || (*buf > 57 && *buf < 65) || (*buf > 64 && *buf < 94) || *buf > 125 || size_str > 52)
|
if(!((*buf > 49 && *buf < 56) || (*buf > 96 && *buf < 123)) || size_str > 52)
|
||||||
return false;
|
return false;
|
||||||
size_str++;
|
size_str++;
|
||||||
buf++;
|
buf++;
|
||||||
|
|
Loading…
Reference in a new issue