fix(inbound): explain how to unlock fallbacks on the inbound form (#5014)

The fallbacks card only renders for VLESS/Trojan over RAW with TLS or
Reality security, and a new inbound starts at security=none — so the Add
Inbound page looked like it had lost fallback support entirely. Show an
inline hint in that state pointing at the Security tab.
This commit is contained in:
MHSanaei
2026-06-12 01:21:38 +02:00
parent 0711d3077b
commit a5e5640804
14 changed files with 36 additions and 13 deletions
@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import dayjs from 'dayjs';
import {
Alert,
Form,
Input,
InputNumber,
@@ -680,6 +681,15 @@ export default function InboundFormModal({
{protocol === Protocols.VLESS && <VlessFields saving={saving} selectedVlessAuth={selectedVlessAuth} network={network} security={security} getNewVlessEnc={getNewVlessEnc} clearVlessEnc={clearVlessEnc} />}
{isFallbackHost && fallbacksCard}
{(protocol === Protocols.VLESS || protocol === Protocols.TROJAN)
&& network === 'tcp' && !isFallbackHost && (
<Alert
className="mt-12"
type="info"
showIcon
message={t('pages.inbounds.fallbacks.needsTls')}
/>
)}
</>
);