Template
Add NaiveProxy client hint for v2rayN IPv6 DNS failures.
Show guidance when copying config if latency fails due to Google DNS over IPv6. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -986,6 +986,7 @@
|
||||
<div class="config-panel active" id="panel-conf">
|
||||
<div class="config-display">
|
||||
<div class="config-text" id="configText"></div>
|
||||
<div class="form-hint hidden" id="configClientHint" style="margin-top: var(--space-sm);"></div>
|
||||
<div class="config-actions">
|
||||
<button class="btn btn-secondary btn-sm" onclick="copyToClipboard(currentConfig)" style="flex:1">
|
||||
{{ _('copy') }}
|
||||
@@ -2840,6 +2841,16 @@
|
||||
document.getElementById('configModalTitle').textContent = `${_('config')} — ${connName}`;
|
||||
document.getElementById('configText').textContent = result.config;
|
||||
document.getElementById('vpnLinkText').textContent = currentVpnLink;
|
||||
const hintEl = document.getElementById('configClientHint');
|
||||
if (hintEl) {
|
||||
if (protoBase(proto) === 'naiveproxy') {
|
||||
hintEl.textContent = _('naiveproxy_client_hint');
|
||||
hintEl.classList.remove('hidden');
|
||||
} else {
|
||||
hintEl.textContent = '';
|
||||
hintEl.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
switchConfigTab('conf');
|
||||
openModal('configModal');
|
||||
generateQR(result.config);
|
||||
|
||||
Reference in New Issue
Block a user