diff --git a/frontend/src/pages/inbounds/InboundFormModal.new.tsx b/frontend/src/pages/inbounds/InboundFormModal.new.tsx index 43dc3484..1c7da945 100644 --- a/frontend/src/pages/inbounds/InboundFormModal.new.tsx +++ b/frontend/src/pages/inbounds/InboundFormModal.new.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import dayjs from 'dayjs'; import { + Checkbox, Form, Input, InputNumber, @@ -25,7 +26,7 @@ import { type InboundFormValues, } from '@/schemas/forms/inbound-form'; import { antdRule } from '@/utils/zodForm'; -import { Protocols } from '@/schemas/primitives'; +import { Protocols, SNIFFING_OPTION } from '@/schemas/primitives'; import DateTimePicker from '@/components/DateTimePicker'; import type { DBInbound } from '@/models/dbinbound'; import type { NodeRecord } from '@/api/queries/useNodesQuery'; @@ -87,6 +88,7 @@ export default function InboundFormModalNew({ const selectableNodes = (availableNodes || []).filter((n) => n.enable); const protocol = Form.useWatch('protocol', form) ?? ''; const isNodeEligible = NODE_ELIGIBLE_PROTOCOLS.has(protocol); + const sniffingEnabled = Form.useWatch(['sniffing', 'enabled'], form) ?? false; useEffect(() => { if (!open) return; @@ -271,6 +273,66 @@ export default function InboundFormModalNew({ > ); + const sniffingTab = ( + <> +