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
261
261
262
262
if (buf->addr .sin_addr .s_addr == person_binary_address) { // request from client to server (udp)
263
263
if (buf->length <= 10 ) continue ;
264
+ buf->data = buf->data + 10 ;
265
+ buf->length -= 10 ;
266
+
264
267
if (callback_list[proxys::callback_udp].has_value ()) {
265
268
try {
266
269
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
270
273
};
271
274
272
275
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);
274
277
continue ;
275
278
};
276
279
You can’t perform that action at this time.
0 commit comments