Merge pull request #17 from webstersprodigy/portscan-hostlist-fix

Fix for hostfiles option in powershell 2
This commit is contained in:
Matt Graeber
2013-10-23 01:44:06 -07:00
+2 -2
View File
@@ -647,14 +647,14 @@ http://webstersprodigy.net
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
if ($Hosts)
if ($PsCmdlet.ParameterSetName -eq "cmdHosts")
{
foreach($h in $Hosts)
{
Parse-Hosts($h) | Out-Null
}
}
elseif ($HostFile)
else
{
Parse-ILHosts($HostFile) | Out-Null
}