Skip to content

Commit

Permalink
fix socket udp get ip or port bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongguangjie committed Aug 16, 2023
1 parent d3a89c6 commit 4ed481d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Network/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ bool Socket::bindPeerAddr(const struct sockaddr *dst_addr, socklen_t addr_len, b
WarnL << "Connect socket to peer address failed: " << SockUtil::inet_ntoa(dst_addr);
return false;
}
memcpy(&_peer_addr, dst_addr, addr_len);
}
return true;
}
Expand Down

0 comments on commit 4ed481d

Please sign in to comment.