Skip to content

Commit

Permalink
fix:less log
Browse files Browse the repository at this point in the history
  • Loading branch information
rufengsuixing committed Dec 26, 2019
1 parent ec30e63 commit 0faf8d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/usr/bin/autoipsetadder/autoaddlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,18 @@ if (passdomain==domain)
a[ip]=domain;
next;
}
a[ip]=domain;
"ipset test china "ip" 2>&1"| getline ipset;
close("ipset test china "ip" 2>&1");
if (index(ipset,"Warning")!=0){
print("china "ip" pass");
a[ip]=domain;
next;
}
"ipset test gfwlist "ip" 2>&1"| getline ipset;
close("ipset test gfwlist "ip" 2>&1");
if (index(ipset,"Warning")!=0){
print("gfwlist "ip" pass");
a[ip]=domain;
next;
}
Expand Down

0 comments on commit 0faf8d4

Please sign in to comment.