diff options
author | louiz’ <louiz@louiz.org> | 2017-11-27 00:48:40 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-11-27 00:48:40 +0100 |
commit | 5b27cee97272d4ae6ff30f03dc57221fa3e3183f (patch) | |
tree | 384cdd85b532bb47c8480103e098f6b8b46a2c39 | |
parent | b82d662082f95e5cab8b486fe26b2e263d4a66cc (diff) | |
download | biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.gz biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.bz2 biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.tar.xz biboumi-5b27cee97272d4ae6ff30f03dc57221fa3e3183f.zip |
Send \r\n at the end of the identd responses
fix #3315
-rw-r--r-- | src/identd/identd_socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identd/identd_socket.cpp b/src/identd/identd_socket.cpp index b85257c..92cd80b 100644 --- a/src/identd/identd_socket.cpp +++ b/src/identd/identd_socket.cpp @@ -50,14 +50,14 @@ std::string IdentdSocket::generate_answer(const BiboumiComponent& biboumi, uint1 if (pair.second->match_port_pairt(local, remote)) { 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()); return os.str(); } } } std::ostringstream os; - os << local << " , " << remote << " ERROR : NO-USER"; + os << local << " , " << remote << " ERROR : NO-USER" << "\r\n"; log_debug("Identd, sending: ", os.str()); return os.str(); } |