) => void;
handleTestConnection: () => void;
- fetchProxyConfig: () => void;
+ fetchCliproxyServerConfig: () => void;
fetchRawConfig: () => void;
}
@@ -1305,9 +1305,9 @@ function ProxyContent({
success,
testResult,
testing,
- saveProxyConfig,
+ saveCliproxyServerConfig,
handleTestConnection,
- fetchProxyConfig,
+ fetchCliproxyServerConfig,
fetchRawConfig,
}: ProxyContentProps) {
// Memoized default config to avoid recreation
@@ -1359,7 +1359,7 @@ function ProxyContent({
const saveHost = () => {
const value = editedHost ?? displayHost;
if (value !== config?.remote.host) {
- saveProxyConfig({ remote: { ...remoteConfig, host: value } });
+ saveCliproxyServerConfig({ remote: { ...remoteConfig, host: value } });
}
setEditedHost(null);
};
@@ -1367,7 +1367,7 @@ function ProxyContent({
const savePort = () => {
const port = parseInt(editedPort ?? displayPort, 10);
if (!isNaN(port) && port !== config?.remote.port) {
- saveProxyConfig({ remote: { ...remoteConfig, port } });
+ saveCliproxyServerConfig({ remote: { ...remoteConfig, port } });
}
setEditedPort(null);
};
@@ -1375,7 +1375,7 @@ function ProxyContent({
const saveAuthToken = () => {
const value = editedAuthToken ?? displayAuthToken;
if (value !== config?.remote.auth_token) {
- saveProxyConfig({ remote: { ...remoteConfig, auth_token: value } });
+ saveCliproxyServerConfig({ remote: { ...remoteConfig, auth_token: value } });
}
setEditedAuthToken(null);
};
@@ -1383,7 +1383,7 @@ function ProxyContent({
const saveLocalPort = () => {
const port = parseInt(editedLocalPort ?? displayLocalPort, 10);
if (!isNaN(port) && port !== config?.local.port) {
- saveProxyConfig({ local: { ...localConfig, port } });
+ saveCliproxyServerConfig({ local: { ...localConfig, port } });
}
setEditedLocalPort(null);
};
@@ -1426,7 +1426,9 @@ function ProxyContent({
{/* Local Mode Card */}