remove unnecessary std::replace

This commit is contained in:
sehraf 2020-06-11 11:03:08 +02:00
parent 86c30a01dd
commit 3d784e8871
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6
2 changed files with 2 additions and 3 deletions

View File

@ -33,8 +33,6 @@
#include "util/rsprint.h"
#include "util/rsrandom.h"
#include "util/rsdebuglevel4.h"
static const std::string kConfigKeyBOBEnable = "BOB_ENABLE";
static const std::string kConfigKeyBOBKey = "BOB_KEY";
static const std::string kConfigKeyBOBAddr = "BOB_ADDR";

View File

@ -19,7 +19,8 @@ std::string keyToBase32Addr(const std::string &key)
// replace I2P specific chars
std::replace(copy.begin(), copy.end(), '~', '/');
std::replace(copy.begin(), copy.end(), '-', '+');
// replacing the - with a + is not necessary, as RsBase64 can handle base64url encoding, too
// std::replace(copy.begin(), copy.end(), '-', '+');
// decode
std::vector<uint8_t> bin;