From ecb1d23f7405886356ab51481f8d0f2ff17f0644 Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Mon, 10 Dec 2018 00:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3win=E5=8A=A9=E6=89=8Bmongoose?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E7=9B=91=E5=90=AClocahost=EF=BC=8C=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E7=9B=91=E5=90=AC127.0.0.1=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/tp_assist_win/ts_http_rpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tp_assist_win/ts_http_rpc.cpp b/client/tp_assist_win/ts_http_rpc.cpp index 37e5013..5b68c6a 100644 --- a/client/tp_assist_win/ts_http_rpc.cpp +++ b/client/tp_assist_win/ts_http_rpc.cpp @@ -221,7 +221,7 @@ bool TsHttpRpc::init_http() { struct mg_connection* nc = nullptr; char addr[128] = { 0 }; - ex_strformat(addr, 128, "tcp://localhost:%d", TS_HTTP_RPC_PORT); + ex_strformat(addr, 128, "tcp://127.0.0.1:%d", TS_HTTP_RPC_PORT); nc = mg_bind(&m_mg_mgr, addr, _mg_event_handler); if (!nc) { @@ -254,7 +254,7 @@ bool TsHttpRpc::init_https() { char addr[128] = { 0 }; - ex_strformat(addr, 128, "tcp://localhost:%d", TS_HTTPS_RPC_PORT); + ex_strformat(addr, 128, "tcp://127.0.0.1:%d", TS_HTTPS_RPC_PORT); //ex_strformat(addr, 128, "%d", TS_HTTPS_RPC_PORT); struct mg_connection* nc = nullptr;