You've already forked caddy-opnsense-blocker
Simplify the dashboard recent IP view
This commit is contained in:
@@ -166,6 +166,17 @@ type ActionAvailability struct {
|
||||
CanClearOverride bool `json:"can_clear_override"`
|
||||
}
|
||||
|
||||
type RecentIPRow struct {
|
||||
IP string `json:"ip"`
|
||||
SourceName string `json:"source_name"`
|
||||
State IPStateStatus `json:"state"`
|
||||
Events int64 `json:"events"`
|
||||
LastSeenAt time.Time `json:"last_seen_at"`
|
||||
Reason string `json:"reason"`
|
||||
ManualOverride ManualOverride `json:"manual_override"`
|
||||
Actions ActionAvailability `json:"actions"`
|
||||
}
|
||||
|
||||
type SourceOffset struct {
|
||||
SourceName string
|
||||
Path string
|
||||
|
||||
Reference in New Issue
Block a user