Skip to content

Commit

Permalink
fix: prevent duplicate ct config
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Nov 26, 2024
1 parent 52f5f0a commit abe6362
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cli.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/syslog.h>
#include <unistd.h>

#include "cli.h"

Expand Down Expand Up @@ -48,13 +48,11 @@ void try_print_info(const int argc, char *argv[]) {
}
#else
printf("UCI support disabled\n");
printf("Conntrack cache: auto\n");
#endif

#ifdef UA2F_NO_CACHE
printf("Conntrack cache: disabled\n");
#else
printf("Conntrack cache: auto\n");
#endif
#endif

exit(EXIT_SUCCESS);
Expand All @@ -79,4 +77,4 @@ void require_root() {
fprintf(stderr, "This program must be run as root\n");
exit(EXIT_FAILURE);
}
}
}

0 comments on commit abe6362

Please sign in to comment.