Skip to content

Commit

Permalink
refine the comment about Windows Crypto API
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Sep 12, 2024
1 parent e00c70e commit 18cac49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/electron/go_vpn_tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class GoTun2socks {
*/
async function checkConnectivity(tun2socks: GoTun2socks) {
const output = await tun2socks.checkConnectivity();
// Only parse the first line, because sometimes Windows Crypto API adds random logs to stdout.
// Only parse the first line, because sometimes Windows Crypto API adds warnings to stdout.
const outObj = JSON.parse(output.split('\n')[0]);
if ('tcpErrorJson' in outObj && outObj.tcpErrorJson) {
throw new Error(outObj.tcpErrorJson);
Expand Down

0 comments on commit 18cac49

Please sign in to comment.