diff --git a/cameradar/cameradar.go b/cameradar/cameradar.go index ad78d3c..21ac903 100644 --- a/cameradar/cameradar.go +++ b/cameradar/cameradar.go @@ -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" diff --git a/xml_models.go b/xml_models.go index 33bffe5..6f3e0d3 100644 --- a/xml_models.go +++ b/xml_models.go @@ -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