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

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

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>