fix(core): update

This commit is contained in:
Philipp Kunz 2019-08-21 13:06:13 +02:00
parent 6d1a781b9a
commit 5df0a53efe

View File

@ -2,6 +2,7 @@ import * as plugins from './smartproxy.plugins';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces';
import { SmartproxyRouter } from './smartproxy.classes.router'; import { SmartproxyRouter } from './smartproxy.classes.router';
import { Socket } from 'net';
export class SmartProxy { export class SmartProxy {
public httpsServer: plugins.https.Server | plugins.http.Server; public httpsServer: plugins.https.Server | plugins.http.Server;
@ -41,7 +42,7 @@ export class SmartProxy {
key: hostCandidate.privateKey key: hostCandidate.privateKey
}); */ }); */
} }
this.httpsServer.on('upgrade', (req, socket) => { this.httpsServer.on('upgrade', (req, socket: Socket) => {
}) })
this.httpsServer.listen(3000); this.httpsServer.listen(3000);