com.jimuwd.xian.registry-proxy 1.0.119 → 1.0.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -415,8 +415,8 @@ export async function startProxyServer(proxyConfigPath, localYarnConfigPath, glo
415
415
  serverIpv4.on('error', errHandler /*this handler will call 'reject'*/);
416
416
  serverIpv6.on('connection', connectionHandler);
417
417
  serverIpv4.on('connection', connectionHandler);
418
- // 为了代理服务器的健壮性,先启动ipv6监听,然后再在其回调函数中启动ipv4监听
419
- const listenOptions = { port, host: '*', ipv6Only: false };
418
+ // 为了代理服务器的健壮性,要同时监听ipv4、v6地址
419
+ const listenOptions = { port, ipv6Only: false };
420
420
  serverIpv6.listen(listenOptions, () => {
421
421
  const addressInfo = serverIpv6.address();
422
422
  // 回写上层局部变量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",