mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
verbose: dump hex value of packet
uses the hexdump() function to display the hex value of each probed packet, making it easy to create regex rules for unsupported connections
This commit is contained in:
parent
2a7bafdd7f
commit
5b756ebd0a
7
probe.c
7
probe.c
@ -297,6 +297,13 @@ int probe_client_protocol(struct connection *cnx)
|
||||
* happens, we just connect to the default protocol so the caller of this
|
||||
* function does not have to deal with a specific failure condition (the
|
||||
* connection will just fail later normally). */
|
||||
|
||||
/* Dump hex values of the packet */
|
||||
if (verbose) {
|
||||
fprintf(stderr, "hexdump of incoming packet:\n");
|
||||
hexdump(buffer, n);
|
||||
}
|
||||
|
||||
if (n > 0) {
|
||||
int res = PROBE_NEXT;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user