mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
✨ 优化忽略规则配置和 Agent 获取 IP
This commit is contained in:
@@ -15,6 +15,11 @@ const (
|
||||
TaskTypeCommand
|
||||
)
|
||||
|
||||
const (
|
||||
MonitorCoverAll = iota
|
||||
MonitorCoverIgnoreAll
|
||||
)
|
||||
|
||||
type Monitor struct {
|
||||
Common
|
||||
Name string
|
||||
@@ -22,8 +27,8 @@ type Monitor struct {
|
||||
Target string
|
||||
SkipServersRaw string
|
||||
Notify bool
|
||||
|
||||
SkipServers map[uint64]bool `gorm:"-" json:"-"`
|
||||
Cover uint8
|
||||
SkipServers map[uint64]bool `gorm:"-" json:"-"`
|
||||
}
|
||||
|
||||
func (m *Monitor) PB() *pb.Task {
|
||||
|
||||
Reference in New Issue
Block a user