mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
round out dns check, dns server check, port forward check, and gateway port forwards
This commit is contained in:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user