diff --git a/docs/public/openapi.json b/docs/public/openapi.json index 307cf7396..298f96690 100644 --- a/docs/public/openapi.json +++ b/docs/public/openapi.json @@ -7797,6 +7797,10 @@ "server": { "type": "string", "description": "Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com." + }, + "allowPrivate": { + "type": "boolean", + "description": "Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true)." } }, "required": [ diff --git a/frontend/public/openapi.json b/frontend/public/openapi.json index 307cf7396..298f96690 100644 --- a/frontend/public/openapi.json +++ b/frontend/public/openapi.json @@ -7797,6 +7797,10 @@ "server": { "type": "string", "description": "Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com." + }, + "allowPrivate": { + "type": "boolean", + "description": "Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true)." } }, "required": [ diff --git a/frontend/src/pages/api-docs/endpoints.ts b/frontend/src/pages/api-docs/endpoints.ts index a8002dde9..a0964c959 100644 --- a/frontend/src/pages/api-docs/endpoints.ts +++ b/frontend/src/pages/api-docs/endpoints.ts @@ -876,6 +876,13 @@ export const sections: readonly Section[] = [ type: 'string', desc: 'Remote server as domain or domain:port (default port 443), e.g. cloudflare-dns.com.', }, + { + name: 'allowPrivate', + in: 'body (form)', + type: 'boolean', + optional: true, + desc: 'Ping a private/internal/loopback server (LAN, Docker service name). Default false (SSRF guard blocks it and the error response sets obj.privateTarget=true).', + }, ], body: 'server=cloudflare-dns.com', response: '{\n "success": true,\n "obj": [\n "e8e2d3..."\n ]\n}', diff --git a/frontend/src/pages/inbounds/form/security/tls.tsx b/frontend/src/pages/inbounds/form/security/tls.tsx index 230c7f7ea..e3b08d8e5 100644 --- a/frontend/src/pages/inbounds/form/security/tls.tsx +++ b/frontend/src/pages/inbounds/form/security/tls.tsx @@ -398,7 +398,7 @@ export default function TlsForm({ />