diff --git a/libi2pd/NTCP2.cpp b/libi2pd/NTCP2.cpp index 6240f73c..fad4ed5d 100644 --- a/libi2pd/NTCP2.cpp +++ b/libi2pd/NTCP2.cpp @@ -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 (); diff --git a/libi2pd/Reseed.cpp b/libi2pd/Reseed.cpp index 718c75ba..d9ab7cc8 100644 --- a/libi2pd/Reseed.cpp +++ b/libi2pd/Reseed.cpp @@ -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) { diff --git a/libi2pd/RouterContext.cpp b/libi2pd/RouterContext.cpp index 16d70e7c..e1685999 100644 --- a/libi2pd/RouterContext.cpp +++ b/libi2pd/RouterContext.cpp @@ -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); } diff --git a/libi2pd/Transports.h b/libi2pd/Transports.h index 90cca0c6..1d824b69 100644 --- a/libi2pd/Transports.h +++ b/libi2pd/Transports.h @@ -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 GetNextX25519KeysPair (); @@ -236,7 +236,7 @@ namespace transport mutable std::mutex m_PeersMutex; std::unordered_map > m_Peers; mutable std::mutex m_ConnectedNetworksMutex; - std::map m_ConnectedNetworks; // /24 or /56 adresss -> count + std::map m_ConnectedNetworks; // /24 or /56 address -> count X25519KeysPairSupplier m_X25519KeysPairSupplier; diff --git a/libi2pd_client/UDPTunnel.h b/libi2pd_client/UDPTunnel.h index 972c0a06..7c10dbf1 100644 --- a/libi2pd_client/UDPTunnel.h +++ b/libi2pd_client/UDPTunnel.h @@ -40,7 +40,7 @@ namespace client { i2p::datagram::DatagramDestination * m_Destination; std::weak_ptr 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;