File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments