feat: add test connection functionality for proxy hosts and enhance UI for testing connections

This commit is contained in:
Wikid82
2025-11-21 18:06:48 -05:00
parent b3c56529a6
commit 870af044f8
15 changed files with 501 additions and 17 deletions

View File

@@ -50,3 +50,7 @@ export const updateProxyHost = async (uuid: string, host: Partial<ProxyHost>): P
export const deleteProxyHost = async (uuid: string): Promise<void> => {
await client.delete(`/proxy-hosts/${uuid}`);
};
export const testProxyHostConnection = async (host: string, port: number): Promise<void> => {
await client.post('/proxy-hosts/test', { forward_host: host, forward_port: port });
};