Feat: Provide a switch for allowing invalid certificates (#450)

This commit is contained in:
Cyenoch authored and GitHub committed 2024-02-25 16:07:06 +08:00
1 parent c309410965
commit 66db0a4751
7 files changed
+27

No files matched your search

+11
View File
@@ -269,6 +269,17 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
</StyledBox>
)}
/>
<Controller
name="option.danger_accept_invalid_certs"
control={control}
render={({ field }) => (
<StyledBox>
<InputLabel>{t("Accept Invalid Certs (Danger)")}</InputLabel>
<Switch checked={field.value} {...field} color="primary" />
</StyledBox>
)}
/>
</>
)}
</BaseDialog>