Skip to content

IPRestrictionRule

reference
1 min readUpdated

Kind: Type

Source: src/middleware/ip-restriction/index.ts

Part of: Middleware

Definition

ts
string | ((addr: { addr: string; type: AddressType }) => boolean)

Relationships

  • IMPORTS → HTTPException
  • IMPORTS → convertIPv4MappedIPv6ToIPv4
  • IMPORTS → convertIPv4ToBinary
  • IMPORTS → convertIPv6BinaryToString
  • IMPORTS → convertIPv6ToBinary
  • IMPORTS → distinctRemoteAddr
  • IMPORTS → isIPv4MappedIPv6
  • IMPORTS → INVALID_IP_ADDRESS_ERROR_CODE

Was this page helpful?

Download as PDF
IPRestrictionRule — Hono (narrator proof)