Skip to content

Commit 5e7d970

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d16c03c + bf8ab00 commit 5e7d970

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function resolvePort(protocol: string, port: string) {
2525
*/
2626
export function socksConnector(proxies: SocksProxies, tlsOpts: TLSOptions = {}): Connector {
2727
const chain = Array.isArray(proxies) ? proxies : [proxies];
28-
const { timeout = 10e3 } = tlsOpts;
28+
const { timeout = 1e4 } = tlsOpts;
2929
const undiciConnect = buildConnector(tlsOpts);
3030

3131
return async (options, callback) => {
@@ -39,7 +39,7 @@ export function socksConnector(proxies: SocksProxies, tlsOpts: TLSOptions = {}):
3939
port: resolvePort(protocol, port),
4040
} : {
4141
port: next.port,
42-
host: next.host ?? next.ipaddress,
42+
host: next.host ?? next.ipaddress!,
4343
};
4444

4545
const socksOpts = {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"socks": "^2.8.1",
34-
"undici": "^6.7.1"
34+
"undici": "^6.10.1"
3535
},
3636
"devDependencies": {
3737
"@e9x/simple-socks": "1.0.0",

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)