com.jimuwd.xian.registry-proxy 1.0.123 → 1.0.124
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 +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -407,6 +407,7 @@ export async function startProxyServer(proxyConfigPath, localYarnConfigPath, glo
|
|
|
407
407
|
server.on('error', errHandler /*this handler will call 'reject'*/);
|
|
408
408
|
server.on('connection', connectionHandler);
|
|
409
409
|
// 为了代理服务器的安全性,暂时只监听本机ipv6地址【::1】,不能对本机之外暴露本代理服务地址避免造成安全隐患
|
|
410
|
+
// 注意:截止目前yarn客户端如果通过localhost:<port>来访问本服务,可能会报错ECONNREFUSED错误码,原因是yarn客户端环境解析“localhost”至多个地址,它会尝试轮询每个地址。
|
|
410
411
|
const listenOptions = { port, host: '::1', ipv6Only: true };
|
|
411
412
|
server.listen(listenOptions, () => {
|
|
412
413
|
const addressInfo = server.address();
|