Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/proxyAddr"

Index

Variables

Const DIGIT_REGEXP

DIGIT_REGEXP: RegExp = /^[0-9]+$/

Const isip

isip: any = ipaddr.isValid

Const parseip

parseip: any = ipaddr.parse

Functions

all

  • all(req: OpineRequest, trust: Function | string[] | string): any

Private compile

  • compile(value: string[] | string): trust

Private compileRangeSubnets

  • compileRangeSubnets(arr: string[]): any[]

Private compileTrust

  • compileTrust(rangeSubnets: any[]): trust

Private parseNetmask

  • parseNetmask(netmask: string): any

Private parseipNotation

  • parseipNotation(note: string): any[]

proxyaddr

  • proxyaddr(req: OpineRequest, trust: Function | string[] | string): any

Private trustMulti

  • trustMulti(subnets: any[]): trust

Private trustNone

  • trustNone(): boolean

Private trustSingle

  • trustSingle(subnet: any[]): trust

Object literals

Private Const IP_RANGES

IP_RANGES: object

Pre-defined IP ranges.

linklocal

linklocal: string[] = ["169.254.0.0/16", "fe80::/10"]

loopback

loopback: string[] = ["127.0.0.1/8", "::1/128"]

uniquelocal

uniquelocal: string[] = ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "fc00::/7"]

Generated using TypeDoc