Send \r\n at the end of the identd responses

fix #3315
This commit is contained in:
louiz’
2017-11-27 00:48:40 +01:00
parent b82d662082
commit 5b27cee972
+2 -2
View File
@@ -50,14 +50,14 @@ std::string IdentdSocket::generate_answer(const BiboumiComponent& biboumi, uint1
if (pair.second->match_port_pairt(local, remote)) if (pair.second->match_port_pairt(local, remote))
{ {
std::ostringstream os; std::ostringstream os;
os << local << " , " << remote << " : USERID : OTHER : " << hash_jid(bridge->get_bare_jid()); os << local << " , " << remote << " : USERID : OTHER : " << hash_jid(bridge->get_bare_jid()) << "\r\n";
log_debug("Identd, sending: ", os.str()); log_debug("Identd, sending: ", os.str());
return os.str(); return os.str();
} }
} }
} }
std::ostringstream os; std::ostringstream os;
os << local << " , " << remote << " ERROR : NO-USER"; os << local << " , " << remote << " ERROR : NO-USER" << "\r\n";
log_debug("Identd, sending: ", os.str()); log_debug("Identd, sending: ", os.str());
return os.str(); return os.str();
} }