From e5759b5d371b03b621e795be716214da904e0802 Mon Sep 17 00:00:00 2001 From: iiiusky <45157320+iiiusky@users.noreply.github.com> Date: Thu, 27 Feb 2020 19:06:24 +0800 Subject: [PATCH] fix osgen cannot parse. --- nmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.go b/nmap.go index 57b4430..b32b0d0 100644 --- a/nmap.go +++ b/nmap.go @@ -255,7 +255,7 @@ type PortUsed struct { // OsClass contains vendor information for an Os. type OsClass struct { Vendor string `xml:"vendor,attr" json:"vendor"` - OsGen string `xml"osgen,attr"` + OsGen string `xml:"osgen,attr" json:"osgen"` Type string `xml:"type,attr" json:"type"` Accuracy string `xml:"accurancy,attr" json:"accurancy"` OsFamily string `xml:"osfamily,attr" json:"osfamily"`