Documentation ¶
Index ¶
- func CanPass(addr string, prefixes []netip.Prefix, hosts []string) (passed bool, prefix *netip.Prefix, host string, err error)
- func New(prefixes []netip.Prefix, hosts []string, onHandle OnHandle) func(ctx *gin.Context)
- func ReadFile(filename string) (prefixes []netip.Prefix, hosts []string, err error)
- func SetupIPFilter(okIPSet []string) (prefixes []netip.Prefix, hosts []string)
- type OnHandle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.