File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,9 @@ class proxy : virtual utils
261261
262262 if (buf->addr .sin_addr .s_addr == person_binary_address) { // request from client to server (udp)
263263 if (buf->length <= 10 ) continue ;
264+ buf->data = buf->data + 10 ;
265+ buf->length -= 10 ;
266+
264267 if (callback_list[proxys::callback_udp].has_value ()) {
265268 try {
266269 if (const auto & callback_ptr = std::any_cast<callback<udp_callback_t >*>(callback_list[proxys::callback_udp])) {
@@ -270,7 +273,7 @@ class proxy : virtual utils
270273 };
271274
272275 person->set_udp_forwarder (htons (buf->addr .sin_port ));
273- person->send_personal (buf->data + 10 , buf->length - 10 , dst_addr, dst_port);
276+ person->send_personal (buf->data , buf->length , dst_addr, dst_port);
274277 continue ;
275278 };
276279
You can’t perform that action at this time.
0 commit comments