diff --git a/server/wsproxy/kcpsession.cc b/server/wsproxy/kcpsession.cc index ee9e859..50126ba 100644 --- a/server/wsproxy/kcpsession.cc +++ b/server/wsproxy/kcpsession.cc @@ -66,6 +66,7 @@ void KcpSession::SendClientMsg(char* buf, int buf_len) void KcpSession::OnRecvPacket(a8::UdpPacket* pkt) { + remote_addr_ = pkt->remote_addr; ikcp_input(kcp_, pkt->buf, pkt->buf_len); }