From 057af3ef1f0c0a0ac2953f605c503eca76a5fc4c Mon Sep 17 00:00:00 2001 From: Eikano <55907021+wanlce@users.noreply.github.com> Date: Sat, 28 Sep 2024 19:10:17 +0800 Subject: [PATCH] fix(hy2): insecure parameter not work Signed-off-by: Eikano <55907021+wanlce@users.noreply.github.com> --- src/components/ConfigureNodeFormModal/Hysteria2Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ConfigureNodeFormModal/Hysteria2Form.tsx b/src/components/ConfigureNodeFormModal/Hysteria2Form.tsx index 8771a4d5..be241baa 100644 --- a/src/components/ConfigureNodeFormModal/Hysteria2Form.tsx +++ b/src/components/ConfigureNodeFormModal/Hysteria2Form.tsx @@ -20,7 +20,7 @@ export const Hysteria2Form = ({ onLinkGeneration }: { onLinkGeneration: (link: s obfs: values.obfs, obfsPassword: values.obfsPassword, sni: values.sni, - insecure: values.allowInsecure, + insecure: values.allowInsecure ? 1 : 0, pinSHA256: values.pinSHA256, }