From 5df0a53efe8ac7813b0b9be70d5cf4162cdeeb54 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 21 Aug 2019 13:06:13 +0200 Subject: [PATCH] fix(core): update --- ts/smartproxy.classes.smartproxy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/smartproxy.classes.smartproxy.ts b/ts/smartproxy.classes.smartproxy.ts index 1071467..aa7ada0 100644 --- a/ts/smartproxy.classes.smartproxy.ts +++ b/ts/smartproxy.classes.smartproxy.ts @@ -2,6 +2,7 @@ import * as plugins from './smartproxy.plugins'; import * as interfaces from './interfaces'; import { SmartproxyRouter } from './smartproxy.classes.router'; +import { Socket } from 'net'; export class SmartProxy { public httpsServer: plugins.https.Server | plugins.http.Server; @@ -41,7 +42,7 @@ export class SmartProxy { key: hostCandidate.privateKey }); */ } - this.httpsServer.on('upgrade', (req, socket) => { + this.httpsServer.on('upgrade', (req, socket: Socket) => { }) this.httpsServer.listen(3000);