Release 3X-UI for Docker / build (push) Canceled after 0s
Release 3X-UI / build (386) (push) Canceled after 0s
Release 3X-UI / build (amd64) (push) Canceled after 0s
Release 3X-UI / build (arm64) (push) Canceled after 0s
Release 3X-UI / build (armv5) (push) Canceled after 0s
Release 3X-UI / build (armv6) (push) Canceled after 0s
Release 3X-UI / build (armv7) (push) Canceled after 0s
Release 3X-UI / build (s390x) (push) Canceled after 0s
Release 3X-UI / Build for Windows (amd64) (push) Canceled after 0s
Release 3X-UI / Publish rolling dev release (push) Canceled after 0s
32 lines
900 B
TypeScript
32 lines
900 B
TypeScript
import { useTranslation } from 'react-i18next';
|
|
import { Input } from 'antd';
|
|
import { Controller, useFormContext } from 'react-hook-form';
|
|
|
|
import { FormField } from '@/components/form/rhf';
|
|
import { SniffingField } from '@/lib/xray/forms/fields';
|
|
|
|
export default function LoopbackFields() {
|
|
const { t } = useTranslation();
|
|
const { control } = useFormContext();
|
|
|
|
return (
|
|
<>
|
|
<FormField label={t('pages.xray.outboundForm.inboundTag')} name={['settings', 'inboundTag']}>
|
|
<Input placeholder={t('pages.xray.outboundForm.inboundTagPlaceholder')} />
|
|
</FormField>
|
|
|
|
<Controller
|
|
control={control}
|
|
name="settings.sniffing"
|
|
render={({ field }) => (
|
|
<SniffingField
|
|
value={field.value}
|
|
onChange={field.onChange}
|
|
enableLabel={t('pages.inbounds.sniffingTab')}
|
|
/>
|
|
)}
|
|
/>
|
|
</>
|
|
);
|
|
}
|