Skip to content

Commit

Permalink
fix masscan 2022-09-25
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Sep 25, 2022
1 parent 95d6cab commit 0f544e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projectdiscovery/nuclei_Yaml/masscan/masscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ type Host struct {

// 端口信息
type Ports struct {
Addr string `json:"addr" gorm:"unique_index:S_R"`
Protocol string `xml:"protocol,attr" json:"protocol" gorm:"unique_index:S_R"`
PortId string `xml:"portid,attr" json:"port_id" gorm:"unique_index:S_R"`
Addr string `json:"addr" gorm:"unique_index:addr,protocol,port_id"`
Protocol string `xml:"protocol,attr" json:"protocol"`
PortId string `xml:"portid,attr" json:"port_id"`
State State `json:"state" xml:"state" gorm:"embedded;"`
Service Service `json:"service" xml:"service" gorm:"embedded;"`
}
Expand Down

0 comments on commit 0f544e3

Please sign in to comment.