Skip to content

Commit b9f4a47

Browse files
committed
fixup! wip
1 parent 02a0e05 commit b9f4a47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node/socket.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { canConnect } from "./util"
1313
*/
1414
export class SocketProxyProvider {
1515
private readonly onProxyConnect = new Emitter<net.Socket>()
16+
// TODO don't use tmpdir
1617
private proxyPipe = path.join(tmpdir, "tls-proxy")
1718
private _proxyServer?: Promise<net.Server>
1819
private readonly proxyTimeout = 5000
@@ -76,6 +77,7 @@ export class SocketProxyProvider {
7677
this._proxyServer = this.findFreeSocketPath(this.proxyPipe)
7778
.then((pipe) => {
7879
this.proxyPipe = pipe
80+
// TODO don't use tmpdir
7981
return Promise.all([fs.mkdir(tmpdir, { recursive: true }), fs.rmdir(this.proxyPipe, { recursive: true })])
8082
})
8183
.then(() => {

0 commit comments

Comments
 (0)