Skip to content

Commit e7fec9f

Browse files
committed
fix: do not ignore host when connect tls
1 parent 536aaa5 commit e7fec9f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/socks-proxy-agent/src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,7 @@ export class SocksProxyAgent extends Agent {
189189
// this socket connection to a TLS connection.
190190
debug('Upgrading socket connection to TLS');
191191
const tlsSocket = tls.connect({
192-
...omit(
193-
setServernameFromNonIpHost(opts),
194-
'host',
195-
'path',
196-
'port'
197-
),
192+
...omit(setServernameFromNonIpHost(opts), 'path', 'port'),
198193
socket,
199194
});
200195

0 commit comments

Comments
 (0)