Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIP ¶
AddIP adds an IP to the appropriate whitelist file Creates whitelist.d/99-manual.conf for manual additions
func LoadAllWhitelists ¶
LoadAllWhitelists loads IPs from all whitelist sources: - /etc/nftban/whitelist.conf (main file) - /etc/nftban/whitelist.d/*.conf (modular files) Returns two sets: IPv4 and IPv6 addresses
Now uses optimized generic Set type from pkg/util for: - Zero memory overhead (struct{} instead of bool) - Consistent API - Better performance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.