Fix a typo in a function name (match_pairt)

It’s totally harmless
This commit is contained in:
louiz’
2020-02-25 22:52:58 +01:00
parent ab7d1bbf02
commit b18d81ae9f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ std::string IdentdSocket::generate_answer(const BiboumiComponent& biboumi, uint1
{
for (const auto& pair: bridge->get_irc_clients())
{
if (pair.second->match_port_pairt(local, remote))
if (pair.second->match_port_pair(local, remote))
{
std::ostringstream os;
os << local << " , " << remote << " : USERID : OTHER : " << hash_jid(bridge->get_bare_jid()) << "\r\n";
+1 -1
View File
@@ -261,7 +261,7 @@ std::string TCPClientSocketHandler::get_port() const
return this->port;
}
bool TCPClientSocketHandler::match_port_pairt(const uint16_t local, const uint16_t remote) const
bool TCPClientSocketHandler::match_port_pair(const uint16_t local, const uint16_t remote) const
{
const auto remote_port = static_cast<uint16_t>(std::stoi(this->port));
return this->is_connected() && local == this->local_port && remote == remote_port;
+1 -1
View File
@@ -34,7 +34,7 @@ class TCPClientSocketHandler: public TCPSocketHandler
/**
* Whether or not this connection is using the two given TCP ports.
*/
bool match_port_pairt(const uint16_t local, const uint16_t remote) const;
bool match_port_pair(const uint16_t local, const uint16_t remote) const;
protected:
bool hostname_resolution_failed;