Done is no mode displayed when an host is aleardy bocked in block_shitty_host
This commit is contained in:
parent
0906839d29
commit
e2984a8777
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ function block_shitty_host {
|
|||
$ip + "`t`t" + $hostname | Out-File -encoding ASCII -append $filename
|
||||
}
|
||||
else {
|
||||
Write-Host -NoNewline -ForegroundColor Yellow " Already blocked "
|
||||
Write-Host -ForegroundColor Yellow " Already blocked "
|
||||
return
|
||||
}
|
||||
}
|
||||
catch {
|
||||
|
@ -175,7 +176,7 @@ Write-Output "I's time to kick ass and chew bubble gum"
|
|||
Write-Output "________________________________________"
|
||||
write-Output ""
|
||||
|
||||
#foreach ($line in Get-Content "lib\hosts.txt"){ block_shitty_host $HOST_FILE $HOST_IP $line }
|
||||
foreach ($line in Get-Content "lib\hosts.txt"){ block_shitty_host $HOST_FILE $HOST_IP $line }
|
||||
foreach ($line in Get-Content "lib\ip.txt"){ block_shitty_ip $line }
|
||||
#foreach ($line in Get-Content "lib\features.txt"){ disable_shitty_feature $line }
|
||||
#foreach ($line in Get-Content "lib\services.txt") { disable_shitty_featureService $line }
|
||||
|
|
Reference in a new issue