fix(core): update
This commit is contained in:
@ -4,4 +4,4 @@ export interface IHostConfig {
|
||||
destinationPort: number;
|
||||
privateKey: string;
|
||||
publicKey: string;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
import * as plugins from './smartproxy.plugins';
|
||||
|
||||
export class SmartproxyRouter {
|
||||
|
||||
}
|
||||
export class SmartproxyRouter {}
|
||||
|
@ -13,7 +13,7 @@ export class SmartProxy {
|
||||
public addHostCandidate(hostCandidate: interfaces.IHostConfig) {
|
||||
// TODO search for old hostCandidates with that target
|
||||
this.hostCandidates.push(hostCandidate);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* starts the proxyInstance
|
||||
|
@ -1,15 +1,10 @@
|
||||
// node native scope
|
||||
import * as https from 'https';
|
||||
|
||||
export {
|
||||
https
|
||||
};
|
||||
export { https };
|
||||
|
||||
// third party scope
|
||||
import express from 'express';
|
||||
import * as httpProxyMiddleware from 'http-proxy-middleware';
|
||||
|
||||
export {
|
||||
express,
|
||||
httpProxyMiddleware
|
||||
};
|
||||
export { express, httpProxyMiddleware };
|
||||
|
Reference in New Issue
Block a user