浏览代码

只要登录,就重新获取IP地址;

Jeff 5 年之前
父节点
当前提交
92e8588fca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SATService/SATService/SATExecutor.cpp

+ 1 - 1
SATService/SATService/SATExecutor.cpp

@@ -343,7 +343,7 @@ bool CSATExecutor::Login(bool bLogin /* = true */)
 	// Ìî³äÊý¾Ý;
 	m_stLoginReq.strStatus = bLogin ? "0" : "1";   // 0±íʾµÇ¼;
 	m_stLoginReq.strDeleteStatus = "";
-	m_stLoginReq.strIP = GLOBAL::g_strIPAddress;
+	m_stLoginReq.strIP = GLOBAL::GetLocalAddress();// GLOBAL::g_strIPAddress;
 	m_stLoginReq.strStorage = "";
 	if ( bLogin ) {
 		m_stLoginReq.strDisconnectTime = "";