Просмотр исходного кода

fix(outbound): add None option to uTLS fingerprint in TLS form (#4760)

Hysteria doesn't use uTLS, but the outbound TLS form's uTLS dropdown only listed concrete fingerprints (chrome, firefox, ...) with no explicit empty entry. Add a None option, matching the inbound TLS form, so the fingerprint can be left empty.
MHSanaei 6 часов назад
Родитель
Сommit
6ae1b38607
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      frontend/src/pages/xray/outbounds/security/tls.tsx

+ 1 - 1
frontend/src/pages/xray/outbounds/security/tls.tsx

@@ -20,7 +20,7 @@ export default function TlsForm() {
         <Select
           allowClear
           placeholder={t('none')}
-          options={UTLS_OPTIONS}
+          options={[{ value: '', label: t('none') }, ...UTLS_OPTIONS]}
         />
       </Form.Item>
       <Form.Item