-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache: --cache-print adds result output
- Loading branch information
Showing
2 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,13 @@ static void _help(void) | |
" -x verbose screen.\n" | ||
" -v display version.\n" | ||
" -h show this help message.\n" | ||
"" | ||
"Debug options:\n" | ||
#ifdef DEBUG | ||
" -N [file] dump dns packet to file.\n" | ||
#endif | ||
" --cache-print [file] print cache.\n" | ||
"" | ||
|
||
"Online help: https://pymumu.github.io/smartdns\n" | ||
"Copyright (C) Nick Peng <[email protected]>\n" | ||
|
@@ -975,6 +982,7 @@ int main(int argc, char *argv[]) | |
_help(); | ||
return 0; | ||
case 256: | ||
tlog_set_early_printf(1, 1, 1); | ||
return dns_cache_print(optarg); | ||
break; | ||
default: | ||
|