添加链式代理下规则适配

This commit is contained in:
Junkai W.
2025-09-22 18:16:17 +08:00
committed by GitHub
parent 620922f82e
commit 909c4028f1
12 changed files with 451 additions and 139 deletions

View File

@@ -82,7 +82,15 @@ const ProxyPage = () => {
if (isChainMode) {
const fetchChainConfig = async () => {
try {
const configData = await getRuntimeProxyChainConfig();
const exitNode = localStorage.getItem("proxy-chain-exit-node");
if (!exitNode) {
console.error("No proxy chain exit node found in localStorage");
setChainConfigData("");
return;
}
const configData = await getRuntimeProxyChainConfig(exitNode);
setChainConfigData(configData || "");
} catch (error) {
console.error("Failed to get runtime proxy chain config:", error);
@@ -106,7 +114,7 @@ const ProxyPage = () => {
<BasePage
full
contentStyle={{ height: "101.5%" }}
title={isChainMode ? t("Node Pool") : t("Proxy Groups")}
title={isChainMode ? t("Proxy Chain Mode") : t("Proxy Groups")}
header={
<Box display="flex" alignItems="center" gap={1}>
<ProviderButton />