fix: admin/internet: timeout for verify
Massimo Melina committed
Jul 24, 2026 at 16:45 UTC
cf89c7957d025a2eea35f04e95eff1fe25839780
3 files changed
+3
-2
admin/src/InternetPage.ts
+1
-1
@@ -17,7 +17,7 @@ import { changeBaseUrl } from './FileForm'
17
import { adminApis } from '../../src/adminApis'
18
import { ALL, WITH_IP } from './countries'
19
import _ from 'lodash'
20
-import { SvgIconProps } from '@mui/material/SvgIcon/SvgIcon'
20
+import { SvgIconProps } from '@mui/material/SvgIcon'
21
import { ConfigForm } from './ConfigForm'
22
import { DynamicDnsResult } from '../../src/ddns'
23
import { ArrayField } from './ArrayField'
shared/api.ts
+1
@@ -18,6 +18,7 @@ const timeoutByApi: Dict = {
18
get_status: 20, // can be lengthy on slow machines because of the find-process-on-busy-port feature
19
check_update: 20,
20
get_vfs: 20, // multiple sources may be slow
21
+ self_check: 15,
22
}
23
24
interface ApiCallOptions {
src/selfCheck.ts
+1
-1
@@ -48,7 +48,7 @@ export async function selfCheck(url: string) {
48
console.debug(svc)
49
body = applySymbols(body)
50
serviceUrl = applySymbols(serviceUrl)!
51
- const timeout = 8_000
51
+ const timeout = 9_000
52
const res = await haveTimeout(timeout, httpString(serviceUrl, { family, timeout, ...rest, body }))
53
const success = new RegExp(regexpSuccess).test(res)
54
const failure = new RegExp(regexpFailure).test(res)