We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af3202 commit 948ea66Copy full SHA for 948ea66
mcp/src/utils/telemetry.ts
@@ -116,7 +116,7 @@ class TelemetryReporter {
116
const urlObj = new URL(url);
117
const client = urlObj.protocol === 'https:' ? https : http;
118
119
- const options = {
+ const options: any = {
120
hostname: urlObj.hostname,
121
port: urlObj.port,
122
path: urlObj.pathname + urlObj.search,
@@ -129,6 +129,12 @@ class TelemetryReporter {
129
timeout: 5000 // 5秒超时
130
};
131
132
+ // 针对 TLS 版本问题的修复
133
+ if (urlObj.protocol === 'https:') {
134
+ options.minVersion = 'TLSv1.2';
135
+ options.maxVersion = 'TLSv1.2';
136
+ }
137
+
138
const req = client.request(options, (res) => {
139
let responseData = '';
140
res.on('data', (chunk) => {
0 commit comments