Skip to content

Commit

Permalink
clip lsp-lifetime to minimal 120s
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Gredler committed Apr 21, 2022
1 parent 9b3cb22 commit 5b2622b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/lspgen/src/lspgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,10 @@ main(int argc, char *argv[])
break;
case 'M':
ctx->lsp_lifetime = atoi(optarg);
if (ctx->lsp_lifetime < 120) {
ctx->lsp_lifetime = 120;
LOG(ERROR, "Set lsp-lifetime to min %us\n", ctx->lsp_lifetime);
}
break;
case 'z':
/* no-ipv4 */
Expand Down

0 comments on commit 5b2622b

Please sign in to comment.