feat: erzwinge festen Proxy für API-Anfragen

This commit is contained in:
Sucukdeluxe
2026-08-31 13:20:03 +02:00
parent 17ac99d373
commit a562f9162a
23 changed files with 530 additions and 64 deletions
+9 -1
View File
@@ -650,6 +650,7 @@ describe("settings views", () => {
maxParallel: 5,
proxyDownloadEnabled: true,
proxyListPath: "C:\\proxy-list.txt",
proxyApiProxyIndex: 7,
proxyConnectionsPerDownload: 16
}),
archivePasswordList: "",
@@ -664,6 +665,7 @@ describe("settings views", () => {
expect(proxyGroup?.fields.map((field) => field.id)).toEqual([
"proxyDownloadEnabled",
"proxyListPath",
"proxyApiProxyIndex",
"proxyConnectionsPerDownload"
]);
expect(proxyGroup?.fields.find((field) => field.id === "proxyListPath")).toEqual(expect.objectContaining({
@@ -671,11 +673,17 @@ describe("settings views", () => {
actionLabel: "Datei wählen",
disabled: false
}));
expect(proxyGroup?.fields.find((field) => field.id === "proxyApiProxyIndex")).toEqual(expect.objectContaining({
value: "7",
min: 1,
max: 100000,
disabled: false
}));
expect(proxyGroup?.fields.find((field) => field.id === "proxyConnectionsPerDownload")).toEqual(expect.objectContaining({
value: "16",
min: 2,
max: 32,
help: expect.stringContaining("80 Proxy-Verbindungen")
help: expect.stringContaining("80 parallele Segmentverbindungen")
}));
});