diff --git a/frontend/src/pages/inbounds/form/InboundFormModal.tsx b/frontend/src/pages/inbounds/form/InboundFormModal.tsx index 8e2fc459..f8364ff9 100644 --- a/frontend/src/pages/inbounds/form/InboundFormModal.tsx +++ b/frontend/src/pages/inbounds/form/InboundFormModal.tsx @@ -24,7 +24,6 @@ import { DeleteOutlined, MinusOutlined, PlusOutlined, - ReloadOutlined, } from '@ant-design/icons'; import { HttpUtil, NumberFormatter, RandomUtil, SizeFormatter, Wireguard } from '@/utils'; @@ -54,9 +53,6 @@ import { Protocols, SNIFFING_OPTION, TCP_CONGESTION_OPTION, - TLS_CIPHER_OPTION, - TLS_VERSION_OPTION, - USAGE_OPTION, UTLS_FINGERPRINT, } from '@/schemas/primitives'; import { @@ -97,8 +93,8 @@ import { WsForm, XhttpForm, } from './transport'; +import { RealityForm, TlsForm } from './security'; -const { TextArea } = Input; import { coerceInboundJsonField, type DBInbound } from '@/models/dbinbound'; import type { NodeRecord } from '@/api/queries/useNodesQuery'; @@ -1481,421 +1477,28 @@ export default function InboundFormModal({ - - prev.streamSettings?.security !== curr.streamSettings?.security - } - > - {({ getFieldValue }) => { - const sec = getFieldValue(['streamSettings', 'security']); - if (sec !== 'tls') return null; - return ( - <> - - - - - ({ value: v, label: v }))} - /> - - - ({ value: fp, label: fp })), - ]} - /> - - - - - - - - - - - - - - - ) : ( - <> - typeof v === 'string' - ? v.split('\n') - : v} - getValueProps={(v) => ({ - value: Array.isArray(v) ? v.join('\n') : v, - })} - > -