mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-17 02:25:02 +03:00
feat(nord): support multi-server NordLynx outbounds (#6311)
* feat(nord): support multi-server NordLynx outbounds * fix(nord): address verified PR review findings Tighten the NordVPN multi-outbound implementation and its regression coverage based on the verified review feedback. - remove the redundant Xray validation test that duplicated the base branch and did not exercise multiple outbounds - make NordModal tests wait for server loading and assert the modal close callback, duplicate-server state, and endpoint behavior - add coverage for resolving the NordLynx public key from technology metadata instead of a numeric technology ID - use a real httptest server for Nord integration tests through an injectable API base URL - represent the All Cities sentinel consistently as null and reset it when a country changes The existing NordVPN API contracts and persisted outbound schema remain unchanged.
This commit is contained in:
@@ -144,19 +144,6 @@ export default function XrayPage() {
|
||||
if (idx >= 0) tt.outbounds.splice(idx, 1);
|
||||
});
|
||||
}
|
||||
function onRemoveOutboundByIndex(index: number) {
|
||||
mutate((tt) => {
|
||||
if (tt.outbounds && index >= 0) tt.outbounds.splice(index, 1);
|
||||
});
|
||||
}
|
||||
function onRemoveRoutingRules(payload: { prefix: string }) {
|
||||
mutate((tt) => {
|
||||
const rules = tt.routing?.rules;
|
||||
if (!Array.isArray(rules)) return;
|
||||
tt.routing!.rules = rules.filter((r) => !r?.outboundTag?.startsWith?.(payload.prefix));
|
||||
});
|
||||
}
|
||||
|
||||
const advancedText = useMemo(() => {
|
||||
if (advSettings === 'xraySetting') return xraySetting;
|
||||
const tpl = templateSettings;
|
||||
@@ -393,8 +380,6 @@ export default function XrayPage() {
|
||||
onClose={() => setNordOpen(false)}
|
||||
onAddOutbound={onAddOutbound}
|
||||
onResetOutbound={onResetOutbound}
|
||||
onRemoveOutbound={onRemoveOutboundByIndex}
|
||||
onRemoveRoutingRules={onRemoveRoutingRules}
|
||||
/>
|
||||
<PiaModal
|
||||
open={piaOpen}
|
||||
|
||||
Reference in New Issue
Block a user