mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 14:13:23 +00:00
Limit the maximum log level settable from the command line
This commit is contained in:
@@ -653,7 +653,8 @@ main(int argc, char **argv)
|
|||||||
config_set_port(&config, optarg, 1);
|
config_set_port(&config, optarg, 1);
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
loglevel++;
|
if (loglevel < log_debug)
|
||||||
|
loglevel++;
|
||||||
break;
|
break;
|
||||||
case 'V':
|
case 'V':
|
||||||
print_version();
|
print_version();
|
||||||
|
|||||||
Reference in New Issue
Block a user