com.jimuwd.xian.registry-proxy 1.0.118 → 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.
- package/dist/index.js +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
|
-
//
|
|
419
|
-
const listenOptions = { port,
|
|
418
|
+
// 为了代理服务器的健壮性,要同时监听ipv4、v6地址
|
|
419
|
+
const listenOptions = { port, ipv6Only: false };
|
|
420
420
|
serverIpv6.listen(listenOptions, () => {
|
|
421
421
|
const addressInfo = serverIpv6.address();
|
|
422
422
|
// 回写上层局部变量
|