mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-08 19:32:06 +03:00
Move hexdump to verbose level 2
From the command line you use two "-v" options or in the configuration file you replace the boolean "verbose:true" with an integer "verbose:2".
This commit is contained in:
parent
6ca1ee7bfd
commit
4e790e074f
2
probe.c
2
probe.c
@ -299,7 +299,7 @@ int probe_client_protocol(struct connection *cnx)
|
|||||||
* connection will just fail later normally). */
|
* connection will just fail later normally). */
|
||||||
|
|
||||||
/* Dump hex values of the packet */
|
/* Dump hex values of the packet */
|
||||||
if (verbose) {
|
if (verbose>1) {
|
||||||
fprintf(stderr, "hexdump of incoming packet:\n");
|
fprintf(stderr, "hexdump of incoming packet:\n");
|
||||||
hexdump(buffer, n);
|
hexdump(buffer, n);
|
||||||
}
|
}
|
||||||
|
@ -375,7 +375,10 @@ static int config_parse(char *filename, struct addrinfo **listen, struct proto *
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
config_lookup_bool(&config, "verbose", &verbose);
|
if(config_lookup_bool(&config, "verbose", &verbose) == CONFIG_FALSE) {
|
||||||
|
config_lookup_int(&config, "verbose", &verbose);
|
||||||
|
}
|
||||||
|
|
||||||
config_lookup_bool(&config, "inetd", &inetd);
|
config_lookup_bool(&config, "inetd", &inetd);
|
||||||
config_lookup_bool(&config, "foreground", &foreground);
|
config_lookup_bool(&config, "foreground", &foreground);
|
||||||
config_lookup_bool(&config, "numeric", &numeric);
|
config_lookup_bool(&config, "numeric", &numeric);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user