Skip to content

Commit

Permalink
feat:兼容新的检测方法
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzhy committed Sep 7, 2023
1 parent 4a5b7a0 commit 47feeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hi/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ dump_item() {
local mac=$(echo $1|tr a-z A-Z)
res=$(awk '$1=="'$mac'" {sub(/[0-1]/,"'$status'",$7);print}' /etc/clients)
sed -i "/$mac/c $res" /etc/clients
curl 'http://localhost/device' -d "blocked=&mac=$mac&blocked=$status" &>/dev/null
curl 'http://localhost/device' -d "mac=$mac&blocked=$status" &>/dev/null
if [ "$status" == "0" ]; then
ipset del block_device $mac
sed -i "/$mac/d" /mnt/blocked
Expand Down

0 comments on commit 47feeec

Please sign in to comment.