Skip to content

Commit fc4426b

Browse files
authored
Merge pull request #13 from yakmannski/patch-1
Update xml.go
2 parents 3914555 + ca23038 commit fc4426b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/output/xml.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ func portToXML(port g.Port, result g.Output) string {
4444
if port.Version != "" {
4545
thisString += fmt.Sprintf(` version="%s"`, port.Version)
4646
}
47-
if port.Product != "" {
48-
thisString += fmt.Sprintf(` product="%s"`, port.Product)
49-
}
5047
if result.OS.Port == port.Port {
5148
thisString += fmt.Sprintf(` ostype="%s" method="probed" conf="8">`, result.OS.Name)
5249
} else if strings.HasSuffix(port.Service, "?") {
@@ -57,8 +54,9 @@ func portToXML(port g.Port, result g.Output) string {
5754
for _, cpe := range port.Cpes {
5855
thisString += fmt.Sprintf(`<cpe>%s</cpe>`, cpe)
5956
}
60-
thisString += "</service></port>\n"
57+
thisString += "</service>"
6158
}
59+
thisString += "</port>\n"
6260
return thisString
6361
}
6462

0 commit comments

Comments
 (0)