From e0fa96e867de09a64e07b7779ee7c42a18faf6fb Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Fri, 1 Dec 2017 16:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E5=8A=A9=E6=89=8B=E5=9C=A8?= =?UTF-8?q?=20tcp://127.0.0.1:50022=20=E7=9B=91=E5=90=AC=EF=BC=8C=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=200.0.0.0:50022=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E8=A2=AB=E6=94=BB=E5=87=BB=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 e746c57..a7fdcf2 100644 --- a/client/tp_assist_win/ts_http_rpc.cpp +++ b/client/tp_assist_win/ts_http_rpc.cpp @@ -220,9 +220,9 @@ bool TsHttpRpc::init(const char* ip, int port) char addr[128] = { 0 }; if (0 == strcmp(ip, "127.0.0.1") || 0 == strcmp(ip, "localhost")) - ex_strformat(addr, 128, ":%d", port); + ex_strformat(addr, 128, "tcp://127.0.0.1:%d", port); else - ex_strformat(addr, 128, "%s:%d", ip, port); + ex_strformat(addr, 128, "tcp://%s:%d", ip, port); nc = mg_bind(&m_mg_mgr, addr, _mg_event_handler); if (nc == NULL)