1
This commit is contained in:
parent
244d93688d
commit
ce629d17ec
@ -61,8 +61,12 @@ public:
|
|||||||
virtual bool HandleRedirect(const std::string& url, const std::string& querystr,
|
virtual bool HandleRedirect(const std::string& url, const std::string& querystr,
|
||||||
std::string& location) override
|
std::string& location) override
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
location = "ws://192.168.100.21:7101";
|
location = "ws://192.168.100.21:7101";
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnDisConnect() override
|
virtual void OnDisConnect() override
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "target_conn.h"
|
#include "target_conn.h"
|
||||||
#include "target_conn_mgr.h"
|
#include "target_conn_mgr.h"
|
||||||
#if MASTER_MODE
|
#ifdef MASTER_MODE
|
||||||
#include "mastersvr.h"
|
#include "mastersvr.h"
|
||||||
#include "mastersvrmgr.h"
|
#include "mastersvrmgr.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,6 +17,7 @@ void MasterSvrMgr::Init()
|
|||||||
{
|
{
|
||||||
curr_context_id_ = a8::MakeInt64(0, time(nullptr) + 1000 * 60 * 10);
|
curr_context_id_ = a8::MakeInt64(0, time(nullptr) + 1000 * 60 * 10);
|
||||||
|
|
||||||
|
#if MASTER_MODE
|
||||||
auto master_svr_cluster_conf = JsonDataMgr::Instance()->GetMasterServerClusterConf();
|
auto master_svr_cluster_conf = JsonDataMgr::Instance()->GetMasterServerClusterConf();
|
||||||
for (int i = 0; i < master_svr_cluster_conf->Size(); ++i) {
|
for (int i = 0; i < master_svr_cluster_conf->Size(); ++i) {
|
||||||
auto master_svr_conf = master_svr_cluster_conf->At(i);
|
auto master_svr_conf = master_svr_cluster_conf->At(i);
|
||||||
@ -30,6 +31,7 @@ void MasterSvrMgr::Init()
|
|||||||
conn->Open();
|
conn->Open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MasterSvrMgr::UnInit()
|
void MasterSvrMgr::UnInit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user