Don't print local ip address on 404 page, fixes #944

(cherry picked from commit 01279a4efa)
This commit is contained in:
Pavel Djundik
2015-07-07 19:01:53 +03:00
committed by Alexey Sokolov
parent fce3d781bb
commit 3bc7b820ac

View File

@@ -639,10 +639,7 @@ bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg
"<h1>" + sStatusMsg.Escape_n(CString::EHTML) + "</h1>\r\n"
"<p>" + sMessage.Escape_n(CString::EHTML) + "</p>\r\n"
"<hr/>\r\n"
"<address>" +
CZNC::GetTag(false, /* bHTML = */ true) +
" at " + GetLocalIP().Escape_n(CString::EHTML) + " Port " + CString(GetLocalPort()) +
"</address>\r\n"
"<p>" + CZNC::GetTag(false, /* bHTML = */ true) + "</p>\r\n"
"</body>\r\n"
"</html>\r\n";