1 |
|
2 | import { IncomingMessage } from "http";
|
3 |
|
4 | export = proxyAddr;
|
5 |
|
6 | declare function proxyAddr(
|
7 | req: IncomingMessage,
|
8 | trust: proxyAddr.Address | proxyAddr.Address[] | ((addr: string, i: number) => boolean),
|
9 | ): string;
|
10 |
|
11 | declare namespace proxyAddr {
|
12 | function all(req: IncomingMessage, trust?: Address | Address[] | ((addr: string, i: number) => boolean)): string[];
|
13 | function compile(val: Address | Address[]): (addr: string, i: number) => boolean;
|
14 |
|
15 | type Address = "loopback" | "linklocal" | "uniquelocal" | string;
|
16 | }
|