Fix XML model addrtype attribute name
This commit is contained in:
committed by
Brendan LE GLAUNEC
parent
fd83be9d95
commit
844f1e31af
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Ullaakut/cameradar"
|
||||
"github.com/ullaakut/cameradar"
|
||||
|
||||
curl "github.com/andelf/go-curl"
|
||||
"github.com/fatih/color"
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ type host struct {
|
||||
type address struct {
|
||||
XMLName xml.Name `xml:"address"`
|
||||
Addr string `xml:"addr,attr"`
|
||||
AddrType string `xml:"addrType,attr" validate:"eq=ipv4|eq=ipv6"`
|
||||
AddrType string `xml:"addrtype,attr" validate:"required,eq=ipv4|eq=ipv6"`
|
||||
}
|
||||
|
||||
// Ports is the list of openned ports on a host
|
||||
|
||||
Reference in New Issue
Block a user