Skip to content

Get-HostsContent is non-functional #3

@MAKLs

Description

@MAKLs

The Get-HostsContent tool in the tool_networking category is not functional.

In Line 24 we validate the IP address successfully, but Test-IPAddress does not populate the $Matches variable. Thus, we index into a null value and fail:

if (Test-IPAddress -ip $_) {$ip = $Matches[1] ...}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions