Merge pull request #121 from lanrenwo/dev

修复access_proto字段导致无法启动的问题
This commit is contained in:
bjdgyc 2022-07-29 18:14:33 +08:00 committed by GitHub
commit 9ccaa039d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ type AccessAudit struct {
SrcPort uint16 `json:"src_port" xorm:"not null"`
Dst string `json:"dst" xorm:"varchar(60) not null"`
DstPort uint16 `json:"dst_port" xorm:"not null"`
AccessProto uint8 `json:"access_proto" xorm:"not null"` // 访问协议
Info string `json:"info" xorm:"varchar(255) not null"` // 详情
AccessProto uint8 `json:"access_proto" xorm:"default 0"` // 访问协议
Info string `json:"info" xorm:"varchar(255) not null default ''"` // 详情
CreatedAt time.Time `json:"created_at" xorm:"DateTime"`
}