mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-02-03 23:05:58 +08:00
Improve UDP payload logging
This commit is contained in:
parent
3a5dbff8ac
commit
cb138b902a
9
mangle.c
9
mangle.c
@ -339,11 +339,14 @@ int process_udp_packet(const struct section_config_t *section, const uint8_t *pk
|
||||
}
|
||||
|
||||
if (dlen > 10 && config.verbose >= VERBOSE_TRACE) {
|
||||
lginfo("UDP payload start: [ ");
|
||||
char buf[50];
|
||||
char *bufpt = buf;
|
||||
bufpt += sprintf(bufpt, "UDP payload start: [ ");
|
||||
for (int i = 0; i < 10; i++) {
|
||||
lginfo("%02x ", data[i]);
|
||||
bufpt += sprintf(bufpt, "%02x ", data[i]);
|
||||
}
|
||||
lginfo("], ");
|
||||
bufpt += sprintf(bufpt, "]");
|
||||
lgtrace_addp("%s", buf);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user