com.jimuwd.xian.registry-proxy 1.0.115 → 1.0.116
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
|
@@ -411,8 +411,8 @@ export async function startProxyServer(proxyConfigPath, localYarnConfigPath, glo
|
|
|
411
411
|
socket.setTimeout(60000);
|
|
412
412
|
socket.setKeepAlive(true, 30000);
|
|
413
413
|
};
|
|
414
|
-
serverIpv6.on('error', errHandler);
|
|
415
|
-
serverIpv4.on('error', errHandler);
|
|
414
|
+
serverIpv6.on('error', errHandler /*this handler will call 'reject'*/);
|
|
415
|
+
serverIpv4.on('error', errHandler /*this handler will call 'reject'*/);
|
|
416
416
|
serverIpv6.on('connection', connectionHandler);
|
|
417
417
|
serverIpv4.on('connection', connectionHandler);
|
|
418
418
|
// 为了代理服务器的健壮性,先启动ipv6监听,然后再在其回调函数中启动ipv4监听
|