Fix up brackets

1.6
Stuart Morgan 2015-12-10 19:22:03 +00:00
parent a39f7f1753
commit 5e7ff31a42
1 changed files with 8 additions and 10 deletions

View File

@ -72,24 +72,22 @@ function Invoke-EgressCheck {
}
function egress {
[CmdletBinding()]
param([string]$ip, [int]$port, [int]$verbosity, [int]$delay, [string]$protocol) {
param([string]$ip, [int]$port, [int]$verbosity, [int]$delay, [string]$protocol)
if ($protocol -eq "TCP" -Or $protocol -eq "ALL") {
generate_tcp -ip $ip -port $port -verbosity $verbosity
if ($delay -gt 0) {
Start-Sleep -m ($delay)
if ($verbosity -gt 0) { Write-Host -NoNewLine "W" }
}
if ($delay -gt 0) {
Start-Sleep -m ($delay)
if ($verbosity -gt 0) { Write-Host -NoNewLine "W" }
}
}
if ($protocol -eq "UDP" -Or $protocol -eq "ALL") {
generate_udp -ip $ip -port $port -verbosity $verbosity
if ($delay -gt 0) {
Start-Sleep -m ($delay)
if ($verbosity -gt 0) { Write-Host -NoNewLine "W" }
}
if ($delay -gt 0) {
Start-Sleep -m ($delay)
if ($verbosity -gt 0) { Write-Host -NoNewLine "W" }
}
}