fix udp client

This commit is contained in:
pigeatgarlic 2025-02-13 02:01:34 +00:00
parent 80c49d546c
commit 13f1c8ecca

View File

@ -58,8 +58,8 @@ on_signal(int sig, FN &&fn) {
template<class FN>
class UDPClient {
public:
UDPClient(FN &&handler) {
bufhandler = std::forward<FN>(handler);
UDPClient(FN handler) {
bufhandler = handler;
}
void Bind(udp::endpoint _remote_endpoint) {