We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef4b5c6 commit e325727Copy full SHA for e325727
1 file changed
src/HttpsProxySocket.ts
@@ -51,7 +51,7 @@ export class HttpsProxySocket {
51
*/
52
connect(options: ConnectionOptions): Promise<tls.TLSSocket> {
53
return new Promise<tls.TLSSocket>(async (resolve, reject) => {
54
- await this._connect(options, (error, socket) => {
+ this._connect(options, (error, socket) => {
55
if (error) {
56
reject(error);
57
} else {
@@ -73,7 +73,7 @@ export class HttpsProxySocket {
73
return createProxyAgent(this, options);
74
}
75
76
- private async _connect(opts: ConnectionOptions, cb: (error: any, socket: tls.TLSSocket | null) => void) {
+ private _connect(opts: ConnectionOptions, cb: (error: any, socket: tls.TLSSocket | null) => void) {
77
const proxy = this.proxy;
78
79
// create a socket connection to the proxy server
0 commit comments