fix: update remote server form tests for new test connection feature

This commit is contained in:
Wikid82
2025-11-22 20:14:31 -05:00
parent efc1103af4
commit ba67cc2274
3 changed files with 43 additions and 24 deletions

View File

@@ -43,3 +43,8 @@ export const testRemoteServerConnection = async (uuid: string): Promise<{ addres
const { data } = await client.post<{ address: string }>(`/remote-servers/${uuid}/test`);
return data;
};
export const testCustomRemoteServerConnection = async (host: string, port: number): Promise<{ address: string; reachable: boolean; error?: string }> => {
const { data } = await client.post<{ address: string; reachable: boolean; error?: string }>('/remote-servers/test', { host, port });
return data;
};