diff --git a/api/module/discovery/model/discovery.go b/api/module/discovery/model/discovery.go index 83c9f11..d103e62 100644 --- a/api/module/discovery/model/discovery.go +++ b/api/module/discovery/model/discovery.go @@ -7,7 +7,7 @@ type DiscoveryZone struct { } type DiscoveryHost struct { - Zone Zone `json:"zone"` + Zone *Zone `json:"zone"` FirstScanRange string `json:"firstScanRange"` LastScanRange string `json:"lastScanRange"` @@ -17,7 +17,7 @@ type DiscoveryHost struct { } type DiscoveryPort struct { - Host Host `json:"host"` + Host *Host `json:"host"` FirstScanRange int `json:"firstScanRange"` LastScanRange int `json:"lastScanRange"` @@ -27,7 +27,7 @@ type DiscoveryPort struct { } type DiscoveryService struct { - Port Port `json:"port"` + Port *Port `json:"port"` IncludeServices []string `json:"includeServices"` }