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:
1 parent
0711d3077b
commit
a5e5640804
14 files changed
+36
-13
No files matched your search
@@ -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')}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -282,7 +282,8 @@
|
||||
"quickAdded": "تمت إضافة {n} fallback",
|
||||
"quickAddedNone": "لا توجد inbounds جديدة مؤهلة للإضافة",
|
||||
"routesWhen": "يوجَّه عندما",
|
||||
"defaultCatchAll": "افتراضي — يلتقط أي شيء آخر"
|
||||
"defaultCatchAll": "افتراضي — يلتقط أي شيء آخر",
|
||||
"needsTls": "تصبح الـ Fallbacks متاحة بعد اختيار TLS أو Reality في تبويب الأمان (فقط VLESS/Trojan عبر RAW)."
|
||||
},
|
||||
"protocol": "بروتوكول",
|
||||
"port": "المنفذ",
|
||||
|
||||
@@ -282,7 +282,8 @@
|
||||
"quickAdded": "Added {n} fallback(s)",
|
||||
"quickAddedNone": "No new eligible inbounds to add",
|
||||
"routesWhen": "Routes when",
|
||||
"defaultCatchAll": "Default — catches anything else"
|
||||
"defaultCatchAll": "Default — catches anything else",
|
||||
"needsTls": "Fallbacks become available once Security is set to TLS or Reality on the Security tab (VLESS/Trojan over RAW only)."
|
||||
},
|
||||
"protocol": "Protocol",
|
||||
"port": "Port",
|
||||
|
||||
Loaded 3 of 14 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user