Delete code that shouldn't have been checked in
This commit is contained in:
1 parent
65bf6d7d6e
commit
41f3987db4
1 file changed
+1
-2
+1
-2
@@ -107,8 +107,7 @@ export function getRequestOrigin(request: IncomingMessage): RequestOrigin {
|
|||||||
encrypted: !!(request.socket as TLSSocket).encrypted
|
encrypted: !!(request.socket as TLSSocket).encrypted
|
||||||
};
|
};
|
||||||
|
|
||||||
// const header = request.headers["forwarded"];
|
const header = request.headers["forwarded"];
|
||||||
const header = 'For="[2001:db8:cafe::17]:4711";proto_=https';
|
|
||||||
if (header) {
|
if (header) {
|
||||||
const ip = parse(soc.remoteAddress) as IPv4;
|
const ip = parse(soc.remoteAddress) as IPv4;
|
||||||
if (cidrs.some(cidr => ip.match(cidr as [IPv4, number]))) {
|
if (cidrs.some(cidr => ip.match(cidr as [IPv4, number]))) {
|
||||||
|
|||||||
Reference in new issue
Block a user