From bf8642d62f2606bb99d3ed3408ee9ce4cd2325e8 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Tue, 6 Jul 2021 11:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=94=E8=AF=AF=EF=BC=9A#9?= =?UTF-8?q?55?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_tcp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/source/mk_tcp.cpp b/api/source/mk_tcp.cpp index b0e6d626..e707328b 100644 --- a/api/source/mk_tcp.cpp +++ b/api/source/mk_tcp.cpp @@ -24,7 +24,7 @@ API_EXPORT const char* API_CALL mk_sock_info_peer_ip(const mk_sock_info ctx, cha API_EXPORT const char* API_CALL mk_sock_info_local_ip(const mk_sock_info ctx, char *buf){ assert(ctx); SockInfo *sock = (SockInfo *)ctx; - strcpy(buf,sock->get_peer_ip().c_str()); + strcpy(buf,sock->get_local_ip().c_str()); return buf; } API_EXPORT uint16_t API_CALL mk_sock_info_peer_port(const mk_sock_info ctx){