修复笔误:#955

This commit is contained in:
ziyue 2021-07-06 11:16:59 +08:00
parent 0838db5326
commit bf8642d62f

View File

@ -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){ API_EXPORT const char* API_CALL mk_sock_info_local_ip(const mk_sock_info ctx, char *buf){
assert(ctx); assert(ctx);
SockInfo *sock = (SockInfo *)ctx; SockInfo *sock = (SockInfo *)ctx;
strcpy(buf,sock->get_peer_ip().c_str()); strcpy(buf,sock->get_local_ip().c_str());
return buf; return buf;
} }
API_EXPORT uint16_t API_CALL mk_sock_info_peer_port(const mk_sock_info ctx){ API_EXPORT uint16_t API_CALL mk_sock_info_peer_port(const mk_sock_info ctx){