Skip to content

Commit 55fbbcc

Browse files
committed
删除ECH调试信息框,保留简洁的状态显示
1 parent fee9979 commit 55fbbcc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

明文源吗

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,7 +2594,6 @@
25942594
<div id="backupStatus" style="margin: 8px 0; color: #00ff00; font-family: 'Courier New', monospace; text-shadow: 0 0 3px #00ff00;">${t.proxyIPStatus}${t.checking}</div>
25952595
<div id="currentIP" style="margin: 8px 0; color: #00ff00; font-family: 'Courier New', monospace; text-shadow: 0 0 3px #00ff00;">${t.currentIP}${t.checking}</div>
25962596
<div id="echStatus" style="margin: 8px 0; color: #00ff00; font-family: 'Courier New', monospace; text-shadow: 0 0 3px #00ff00; font-size: 0.9rem;">ECH状态: ${t.checking}</div>
2597-
<div id="echDebug" style="margin: 8px 0; padding: 8px; background: rgba(0, 20, 0, 0.6); border: 1px solid #00aa00; border-radius: 4px; color: #00aa00; font-family: 'Courier New', monospace; font-size: 0.8rem; display: none; white-space: pre-wrap; max-height: 200px; overflow-y: auto;"></div>
25982597
<div id="regionMatch" style="margin: 8px 0; color: #00ff00; font-family: 'Courier New', monospace; text-shadow: 0 0 3px #00ff00;">${t.regionMatch}${t.checking}</div>
25992598
<div id="selectionLogic" style="margin: 8px 0; color: #00aa00; font-family: 'Courier New', monospace; font-size: 0.9rem; text-shadow: 0 0 3px #00aa00;">${t.selectionLogic}${t.selectionLogicText}</div>
26002599
</div>
@@ -3788,7 +3787,6 @@
37883787

37893788
async function checkECHStatus() {
37903789
const echStatusEl = document.getElementById('echStatus');
3791-
const echDebugEl = document.getElementById('echDebug');
37923790

37933791
if (!echStatusEl) return;
37943792

@@ -3805,34 +3803,18 @@
38053803
}
38063804
});
38073805

3808-
const echDebugHeader = response.headers.get('X-ECH-Debug');
38093806
const echStatusHeader = response.headers.get('X-ECH-Status');
38103807
const echConfigLength = response.headers.get('X-ECH-Config-Length');
38113808

38123809
if (echStatusHeader === 'SUCCESS') {
38133810
echStatusEl.innerHTML = 'ECH状态: <span style="color: #44ff44;">✅ 已启用 (配置长度: ' + (echConfigLength || 'N/A') + ')</span>';
3814-
if (echDebugEl && echDebugHeader) {
3815-
echDebugEl.style.display = 'block';
3816-
echDebugEl.textContent = 'ECH调试信息:\\n' + echDebugHeader.replace(/\s*\|\s*/g, '\\n');
3817-
}
38183811
} else if (echStatusHeader === 'FAILED') {
38193812
echStatusEl.innerHTML = 'ECH状态: <span style="color: #ff4444;">❌ 获取失败</span>';
3820-
if (echDebugEl && echDebugHeader) {
3821-
echDebugEl.style.display = 'block';
3822-
echDebugEl.textContent = 'ECH调试信息:\\n' + echDebugHeader.replace(/\s*\|\s*/g, '\\n');
3823-
}
38243813
} else {
38253814
echStatusEl.innerHTML = 'ECH状态: <span style="color: #ffaa00;">⚠️ 未启用或未检测到</span>';
3826-
if (echDebugEl) {
3827-
echDebugEl.style.display = 'none';
3828-
}
38293815
}
38303816
} catch (error) {
38313817
echStatusEl.innerHTML = 'ECH状态: <span style="color: #ff4444;">❌ 检测失败: ' + error.message + '</span>';
3832-
if (echDebugEl) {
3833-
echDebugEl.style.display = 'block';
3834-
echDebugEl.textContent = '错误: ' + error.message;
3835-
}
38363818
}
38373819
}
38383820

0 commit comments

Comments
 (0)