Honor X-Forwarded-For of HTTP clients not only in web.

Fix #537
This commit is contained in:
Alexey Sokolov
2014-12-16 10:48:33 +00:00
parent a65954bb72
commit c570b551aa
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ public:
// Getters
unsigned short GetUserPort() const { return m_uRemotePort; }
const CString& GetRemoteIP() const { return m_sRemoteIP; }
const CString& GetRemoteAddr() const { return m_sRemoteIP; }
const CString& GetRemoteNick() const { return m_sRemoteNick; }
const CString& GetFileName() const { return m_sFileName; }
CDCCBounce* GetPeer() const { return m_pPeer; }
@@ -105,7 +105,7 @@ public:
if (!(pSock->IsRemote())) {
Table.AddRow();
Table.SetCell("Nick", pSock->GetRemoteNick());
Table.SetCell("IP", pSock->GetRemoteIP());
Table.SetCell("IP", pSock->GetRemoteAddr());
if (pSock->IsChat()) {
Table.SetCell("Type", "Chat");