MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / DropSourceIP

Method DropSourceIP

internal/firewalls/firewall_interface.go:29–29  ·  view source on GitHub ↗

DropSourceIP 丢弃某个源IP数据 ip 要封禁的IP timeoutSeconds 过期时间 async 是否异步

(ip string, timeoutSeconds int, async bool)

Source from the content-addressed store, hash-verified

27 // timeoutSeconds 过期时间
28 // async 是否异步
29 DropSourceIP(ip string, timeoutSeconds int, async bool) error
30
31 // RemoveSourceIP 删除某个源IP
32 RemoveSourceIP(ip string) error

Callers 2

listenSockMethod · 0.65
DropTemporaryToFunction · 0.65

Implementers 4

HTTPFirewallinternal/firewalls/firewall_http.go
Firewalldinternal/firewalls/firewall_firewalld.
MockFirewallinternal/firewalls/firewall_mock.go
NFTablesFirewallinternal/firewalls/firewall_nftables_o

Calls

no outgoing calls

Tested by

no test coverage detected