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);
|
||||
break;
|
||||
case 'v':
|
||||
loglevel++;
|
||||
if (loglevel < log_debug)
|
||||
loglevel++;
|
||||
break;
|
||||
case 'V':
|
||||
print_version();
|
||||
|
||||
Reference in New Issue
Block a user