fix typos

This commit is contained in:
Dimitris Apostolou
2026-03-28 09:19:33 +02:00
parent f7c33b3995
commit 2f15da3d5a
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ namespace transport
uint8_t options[32]; // actual options size is 16 bytes
memset (options, 0, 16);
options[0] = i2p::context.GetNetID (); // network ID
options[1] = 2; // ver, always 2 regradless actual version
options[1] = 2; // ver, always 2 regardless actual version
htobe16buf (options + 2, paddingLength); // padLen
// calculate m3p2Len
auto riBuffer = i2p::context.CopyRouterInfoBuffer ();
+1 -1
View File
@@ -756,7 +756,7 @@ namespace data
}
if ((res.code == 301 || res.code == 302 || res.code == 307) && follow) {
LogPrint(eLogDebug, "Reseed: Recieved redirect from ", uri);
LogPrint(eLogDebug, "Reseed: Received redirect from ", uri);
std::string location = res.get_header("Location");
if (location.length() == 0) {
+1 -1
View File
@@ -651,7 +651,7 @@ namespace i2p
m_RouterInfo.UpdateFloodfillProperty (true);
if (addresses)
{
// diable introducer for all floodfill's SSU2 addresses
// disable introducer for all floodfill's SSU2 addresses
UpdateSSU2AddressCapsIntroducer ((*addresses)[i2p::data::RouterInfo::eSSU2V4Idx], false);
UpdateSSU2AddressCapsIntroducer ((*addresses)[i2p::data::RouterInfo::eSSU2V6Idx], false);
}
+2 -2
View File
@@ -148,7 +148,7 @@ namespace transport
bool IsOnline() const { return m_IsOnline; };
void SetOnline (bool online);
int GetLocalDelay () const; // in millseconds
int GetLocalDelay () const; // in milliseconds
auto& GetService () { return *m_Service; };
std::shared_ptr<i2p::crypto::X25519Keys> GetNextX25519KeysPair ();
@@ -236,7 +236,7 @@ namespace transport
mutable std::mutex m_PeersMutex;
std::unordered_map<i2p::data::IdentHash, std::shared_ptr<Peer> > m_Peers;
mutable std::mutex m_ConnectedNetworksMutex;
std::map<boost::asio::ip::address, int> m_ConnectedNetworks; // /24 or /56 adresss -> count
std::map<boost::asio::ip::address, int> m_ConnectedNetworks; // /24 or /56 address -> count
X25519KeysPairSupplier m_X25519KeysPairSupplier;
+1 -1
View File
@@ -40,7 +40,7 @@ namespace client
{
i2p::datagram::DatagramDestination * m_Destination;
std::weak_ptr<i2p::datagram::DatagramSession> m_LastDatagramSession;
uint64_t m_LastRepliableDatagramTime; // millseconds
uint64_t m_LastRepliableDatagramTime; // milliseconds
i2p::data::IdentHash Identity;
bool isIdentity = false;
uint32_t m_NextSendPacketNum = 1, m_LastReceivedPacketNum = 0;