Skip to content

Commit 0411d4e

Browse files
committed
Bugfix
1 parent 01e7299 commit 0411d4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Scripts/ScanPortsAsync.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Process{
234234
# Go through each port
235235
foreach($Port_Open in $Ports_Open)
236236
{
237-
# go through each service
237+
# Go through each service
238238
foreach($XML_Node in $XML_PortList.Registry.Record)
239239
{
240240
# Find the right service (based on protocol and port number)
@@ -250,6 +250,8 @@ Process{
250250

251251
# Add it to an array
252252
$Ports_Open_Assigned += $Port_Open_Assigned
253+
254+
break # Don't show multiple results
253255
}
254256
}
255257
}

0 commit comments

Comments
 (0)