fix: Showing wrong IP while using Reverse Proxy
This commit is contained in:
@@ -531,7 +531,7 @@ void CMachineDlg::ShowNetStateList()
|
||||
if (!IPAddress.Compare(_T("0.0.0.0")) || !IPAddress.Compare(_T("*.*.*.*"))) {
|
||||
str = _T("---");
|
||||
} else {
|
||||
str = m_IPConverter->IPtoAddress(IPAddress);
|
||||
str = m_IPConverter->IPtoAddress(IPAddress.GetString()).c_str();
|
||||
}
|
||||
m_list.SetItemText(i, j, str);
|
||||
}
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
// CMachineDlg dialog
|
||||
|
||||
// TODO: ʵ<><CAB5>IP<49><50>ȡ.
|
||||
class IPConverter
|
||||
{
|
||||
public:
|
||||
CString IPtoAddress(const CString& ip) { return "implement me"; }
|
||||
};
|
||||
#include "common/location.h"
|
||||
|
||||
|
||||
class CMachineDlg : public DialogBase
|
||||
|
||||
Reference in New Issue
Block a user