Fix XML model addrtype attribute name

This commit is contained in:
Brendan Le Glaunec
2018-07-03 16:18:59 +02:00
committed by Brendan LE GLAUNEC
parent fd83be9d95
commit 844f1e31af
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/Ullaakut/cameradar" "github.com/ullaakut/cameradar"
curl "github.com/andelf/go-curl" curl "github.com/andelf/go-curl"
"github.com/fatih/color" "github.com/fatih/color"
+1 -1
View File
@@ -19,7 +19,7 @@ type host struct {
type address struct { type address struct {
XMLName xml.Name `xml:"address"` XMLName xml.Name `xml:"address"`
Addr string `xml:"addr,attr"` 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 // Ports is the list of openned ports on a host