Skip to content

Commit

Permalink
Update puredns
Browse files Browse the repository at this point in the history
Fixed a bug where valid subdomains were not saved
  • Loading branch information
nine9-nine9 authored and d3mondev committed Oct 16, 2020
1 parent fe82a4f commit 89e38ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions puredns
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ parse_args() {
skip_wildcard_check=0
skip_sanitize=0

domains_file=''
output_file=''
massdns_file=''
wildcards_file=''
wildcard_answers_file=''
Expand Down Expand Up @@ -150,7 +150,7 @@ parse_args() {
skip_wildcard_check=1
;;
--write|-w)
domains_file=$2
output_file=$2
shift
;;
--write-massdns|-wm)
Expand Down Expand Up @@ -426,8 +426,8 @@ write_output_files() {

cat ${domains_work}

if [[ -n "${domains_file}" ]]; then
cp "${domains_work}" "${domains_file}"
if [[ -n "${output_file}" ]]; then
cp "${domains_work}" "${output_file}"
fi

if [[ -n "${massdns_file}" ]]; then
Expand Down

0 comments on commit 89e38ca

Please sign in to comment.