From 7cbfd683f24cbe9b0c6c24fc936bfcfeca43f08c Mon Sep 17 00:00:00 2001 From: thomkeh <7741417+thomkeh@users.noreply.github.com> Date: Tue, 17 Jul 2018 15:49:02 +0100 Subject: [PATCH] Make port a number and comment out verify-x509 --- ovpn2onc.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ovpn2onc.html b/ovpn2onc.html index 61c41f1..bb6c8d8 100644 --- a/ovpn2onc.html +++ b/ovpn2onc.html @@ -234,7 +234,7 @@ // Add parameters let remote = ovpn.remote.split(' ') const host = remote[0] - if (remote[1]) params['Port'] = remote[1] + if (remote[1]) params['Port'] = Number(remote[1]) if (ovpn['auth-user-pass']) params['UserAuthenticationType'] = 'Password' if (ovpn['comp-lzo'] && ovpn['comp-lzo'] !== 'no') { params['CompLZO'] = 'true' @@ -251,11 +251,12 @@ params['TLSAuthContents'] = convertKey(keyString) if (authKey[1]) params['KeyDirection'] = authKey[1] } - if (ovpn['verify-x509-name']) { - params['VerifyX509'] = { - 'Name': ovpn['verify-x509-name'] - } - } + // TODO: figure out what to do with this + // if (ovpn['verify-x509-name']) { + // params['VerifyX509'] = { + // 'Name': ovpn['verify-x509-name'] + // } + // } // set parameters if they exist in the ovpn config let conditionalSet = (ovpnName, oncName, type = 'str') => { if (ovpn[ovpnName]) {