fix: resolve server inbound DNS & routing, strategy fuzzer UI sync, and sing-box-extended latency
This commit is contained in:
@@ -1965,10 +1965,29 @@ export function renderStrategyFuzzerModal(ruleNames: string[] = []) {
|
||||
selectedRuleSection,
|
||||
);
|
||||
if (res.success) {
|
||||
showToast(
|
||||
`${_('Applied')} "${item.name}" -> ${selectedRuleSection || _('Global Default')}`,
|
||||
'success',
|
||||
);
|
||||
if (typeof ui?.addNotification === 'function') {
|
||||
ui.addNotification(
|
||||
_('Tachyon'),
|
||||
E(
|
||||
'p',
|
||||
{},
|
||||
`${_('Strategy applied successfully and service reloaded!')} (${item.name} -> ${selectedRuleSection || _('Global Default')})`,
|
||||
),
|
||||
'info',
|
||||
);
|
||||
} else {
|
||||
showToast(
|
||||
`${_('Applied')} "${item.name}" -> ${selectedRuleSection || _('Global Default')}`,
|
||||
'success',
|
||||
);
|
||||
}
|
||||
if (typeof ui?.hideModal === 'function') ui.hideModal();
|
||||
if (
|
||||
typeof window !== 'undefined' &&
|
||||
typeof window.location?.reload === 'function'
|
||||
) {
|
||||
window.location.reload();
|
||||
}
|
||||
} else {
|
||||
showToast(_('Failed to apply strategy'), 'error');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user