+ {t(
+ "Add http://, https:// or socks5:// proxies (optionally user:pass@host:port). Test each one to see the egress IP it reveals, pick the active proxy, and choose how the pool rotates on failure.",
+ )}
+
+ )}
+
+
+ );
+}
diff --git a/web/src/i18n/locales/tr.json b/web/src/i18n/locales/tr.json
index 736aa13f3..83677b40b 100644
--- a/web/src/i18n/locales/tr.json
+++ b/web/src/i18n/locales/tr.json
@@ -2724,5 +2724,30 @@
"Search company…": "Şirket ara…",
"Failed to load companies": "Şirketler yüklenemedi",
"No company found": "Şirket bulunamadı",
- "Manage companies": "Şirketleri yönet"
+ "Manage companies": "Şirketleri yönet",
+ "None · use the active proxy only": "Yok · yalnızca etkin proxy'yi kullan",
+ "On failure · rotate to the next enabled proxy": "Başarısızlıkta · sonraki etkin proxy'ye geç",
+ "Timed · rotate on a timer": "Zamanlanmış · zamanlayıcıya göre döndür",
+ "Failed to load the proxy pool: {error}": "Proxy havuzu yüklenemedi: {error}",
+ "Never": "Asla",
+ "Added proxy to the pool": "Proxy havuzuna eklendi",
+ "Remove this proxy from the pool?": "Bu proxy'yi havuzdan kaldırmak istiyor musunuz?",
+ "Removed proxy from the pool": "Proxy havuzundan kaldırıldı",
+ "Egress IP: {ip}": "Giden IP: {ip}",
+ "Rotation strategy saved": "Rotasyon stratejisi kaydedildi",
+ "Proxy pool": "Proxy havuzu",
+ "A pool of egress proxies with enable/disable, active selection and egress-IP testing (restored 0.7.x feature). Only one proxy may be active at a time.": "Etkinleştirme/devre dışı bırakma, etkin seçim ve giden IP testi ile giden proxy havuzu (0.7.x özelliği geri yüklendi). Yalnızca bir proxy aynı anda etkin olabilir.",
+ "Rotation": "Döndürme",
+ "Choose a strategy": "Bir strateji seçin",
+ "socks5://user:pass@host:1080 or http://host:port": "socks5://user:pass@host:1080 veya http://host:port",
+ "Adding…": "Ekleniyor…",
+ "Proxy pool entries": "Proxy havuzu girişleri",
+ "Last tested": "Son test",
+ "Egress IP": "Giden IP",
+ "Failures": "Hatalar",
+ "Set as active proxy": "Etkin proxy olarak ayarla",
+ "Set active": "Etkinleştir",
+ "Test egress": "Giden testi",
+ "No proxies in the pool yet. Add one above.": "Henüz havuzda proxy yok. Yukarıdan bir tane ekleyin.",
+ "Add http://, https:// or socks5:// proxies (optionally user:pass@host:port). Test each one to see the egress IP it reveals, pick the active proxy, and choose how the pool rotates on failure.": "http://, https:// veya socks5:// proxyleri ekleyin (isteğe bağlı user:pass@host:port). Her birini test ederek ortaya çıkan giden IP'yi görün, etkin proxy'yi seçin ve havuzun başarısızlıkta nasıl döndüreceğini belirleyin."
}
diff --git a/web/src/i18n/locales/zh-CN.json b/web/src/i18n/locales/zh-CN.json
index fa7b58d56..01b80a59a 100644
--- a/web/src/i18n/locales/zh-CN.json
+++ b/web/src/i18n/locales/zh-CN.json
@@ -2724,5 +2724,30 @@
"Search company…": "搜索企业…",
"Failed to load companies": "加载企业失败",
"No company found": "未找到企业",
- "Manage companies": "管理企业"
+ "Manage companies": "管理企业",
+ "None · use the active proxy only": "无 · 仅使用活动代理",
+ "On failure · rotate to the next enabled proxy": "失败时 · 轮换到下一个启用的代理",
+ "Timed · rotate on a timer": "定时 · 按计时器轮换",
+ "Failed to load the proxy pool: {error}": "加载代理池失败: {error}",
+ "Never": "从不",
+ "Added proxy to the pool": "已将代理添加到池中",
+ "Remove this proxy from the pool?": "是否将此代理从池中移除?",
+ "Removed proxy from the pool": "已从池中移除代理",
+ "Egress IP: {ip}": "出口 IP: {ip}",
+ "Rotation strategy saved": "轮换策略已保存",
+ "Proxy pool": "代理池",
+ "A pool of egress proxies with enable/disable, active selection and egress-IP testing (restored 0.7.x feature). Only one proxy may be active at a time.": "带启用/禁用、活动选择和出口 IP 测试的代理池(已恢复 0.7.x 功能)。同一时间只能有一个代理处于活动状态。",
+ "Rotation": "轮换",
+ "Choose a strategy": "选择策略",
+ "socks5://user:pass@host:1080 or http://host:port": "socks5://user:pass@host:1080 或 http://host:port",
+ "Adding…": "添加中…",
+ "Proxy pool entries": "代理池条目",
+ "Last tested": "上次测试",
+ "Egress IP": "出口 IP",
+ "Failures": "失败次数",
+ "Set as active proxy": "设为活动代理",
+ "Set active": "激活",
+ "Test egress": "测试出口",
+ "No proxies in the pool yet. Add one above.": "池中暂无代理。请在上方添加。",
+ "Add http://, https:// or socks5:// proxies (optionally user:pass@host:port). Test each one to see the egress IP it reveals, pick the active proxy, and choose how the pool rotates on failure.": "添加 http://、https:// 或 socks5:// 代理(可选 user:pass@host:port)。逐个测试以查看其显示的出口 IP,选择活动代理,并决定池在失败时如何轮换。"
}
diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts
index 7a1035c04..e7c3c5d2c 100644
--- a/web/src/lib/api.ts
+++ b/web/src/lib/api.ts
@@ -77,6 +77,7 @@ import type {
PromptVersion,
SessionTokenUsage,
Settings,
+ ProxyPoolEntry,
Severity,
SkillCall,
SkillItem,
@@ -1019,6 +1020,20 @@ export const api = {
keenable_search_api_key?: string;
}) => post<{ ok: boolean; error?: string; count?: number; backend?: string }>(`/settings/web-search/test`, patch),
+ // ---- Restored proxy pool (0.7.x regression fix) ----
+ proxyPool: () => get<{ proxy_pool: ProxyPoolEntry[]; rotation: string }>(`/settings/proxy-pool`).then((r) => ({
+ proxy_pool: arr(r.proxy_pool),
+ rotation: r.rotation ?? "none",
+ })),
+ addProxyPool: (address: string) => post<{ id: number }>(`/settings/proxy-pool`, { address }),
+ deleteProxyPool: (id: number) => del<{ deleted: boolean }>(`/settings/proxy-pool/${id}`),
+ patchProxyPool: (id: number, fields: { enabled?: boolean; active?: boolean }) =>
+ patch<{ ok: boolean }>(`/settings/proxy-pool/${id}`, fields),
+ testProxyPool: (address: string) =>
+ post<{ egress_ip: string }>(`/settings/proxy-pool/test`, { address }),
+ putProxyPoolRotation: (rotation: string) =>
+ put<{ rotation: string }>(`/settings/proxy-pool/rotation`, { rotation }),
+
// ---- Vulnerability IM push ----
// Channels are multi-instance resources (several bots of the same kind, each with its own
// filter rules), so they form their own group instead of the flat settings key/value store.
diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts
index 9eba76a74..0b86bb735 100644
--- a/web/src/lib/types.ts
+++ b/web/src/lib/types.ts
@@ -1066,6 +1066,21 @@ export interface Settings {
notify_assets_max_shown?: number; // asset names listed per finding, 0-50, default 3
// Target noise profile; the stored setting wins over ARTEX_NOISE_PROFILE. Applies to the next request.
noise_profile?: NoiseProfileName;
+ // Restored proxy pool (0.7.x regression fix): the current pool entries and the
+ // rotation strategy. Entries are managed via /api/settings/proxy-pool.
+ proxy_pool?: ProxyPoolEntry[]; // list of egress proxies (newest first)
+ proxy_pool_rotation?: string; // "none" | "on_failure" | "timed"
+}
+
+export interface ProxyPoolEntry {
+ id: number; // pool row id
+ address: string; // http/https/socks5 URL, optionally user:pass
+ enabled: boolean; // whether this proxy is a candidate for use
+ active: boolean; // whether this is the single active proxy (only one at a time)
+ last_tested?: number; // unix seconds of the last egress test, 0 = never
+ egress_ip?: string; // egress IP observed at the last successful test
+ fail_count?: number; // consecutive failed egress tests
+ created_at?: number; // unix seconds
}
export type NoiseProfileName = "off" | "quiet" | "balanced" | "aggressive";