round out dns check, dns server check, port forward check, and gateway port forwards

This commit is contained in:
Matt Hill
2026-02-17 23:31:47 -07:00
parent a22707c1cb
commit 485fced691
37 changed files with 1228 additions and 252 deletions

View File

@@ -26,6 +26,7 @@ import {
import { GetPackageRes, GetPackagesRes } from '@start9labs/marketplace'
import {
ActionRes,
CheckDnsRes,
CifsBackupTarget,
DiagnosticErrorRes,
FollowPackageLogsReq,
@@ -497,14 +498,18 @@ export class MockApiService extends ApiService {
return null
}
async checkPort(
params: T.CheckPortParams,
): Promise<T.CheckPortRes> {
async checkPort(params: T.CheckPortParams): Promise<T.CheckPortRes> {
await pauseFor(2000)
return { ip: '0.0.0.0', port: params.port, reachable: false }
}
async checkDns(params: T.CheckDnsParams): Promise<CheckDnsRes> {
await pauseFor(2000)
return false
}
// marketplace URLs
async checkOSUpdate(params: {
@@ -662,9 +667,7 @@ export class MockApiService extends ApiService {
return null
}
async setServiceOutbound(
params: T.SetOutboundGatewayParams,
): Promise<null> {
async setServiceOutbound(params: T.SetOutboundGatewayParams): Promise<null> {
await pauseFor(2000)
const patch = [
{