mirror of
https://github.com/ArcticFoxes-net/ONC-Converter
synced 2025-01-02 12:51:34 -05:00
Make port a number and comment out verify-x509
This commit is contained in:
parent
12e1f5501a
commit
7cbfd683f2
@ -234,7 +234,7 @@
|
|||||||
// Add parameters
|
// Add parameters
|
||||||
let remote = ovpn.remote.split(' ')
|
let remote = ovpn.remote.split(' ')
|
||||||
const host = remote[0]
|
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['auth-user-pass']) params['UserAuthenticationType'] = 'Password'
|
||||||
if (ovpn['comp-lzo'] && ovpn['comp-lzo'] !== 'no') {
|
if (ovpn['comp-lzo'] && ovpn['comp-lzo'] !== 'no') {
|
||||||
params['CompLZO'] = 'true'
|
params['CompLZO'] = 'true'
|
||||||
@ -251,11 +251,12 @@
|
|||||||
params['TLSAuthContents'] = convertKey(keyString)
|
params['TLSAuthContents'] = convertKey(keyString)
|
||||||
if (authKey[1]) params['KeyDirection'] = authKey[1]
|
if (authKey[1]) params['KeyDirection'] = authKey[1]
|
||||||
}
|
}
|
||||||
if (ovpn['verify-x509-name']) {
|
// TODO: figure out what to do with this
|
||||||
params['VerifyX509'] = {
|
// if (ovpn['verify-x509-name']) {
|
||||||
'Name': ovpn['verify-x509-name']
|
// params['VerifyX509'] = {
|
||||||
}
|
// 'Name': ovpn['verify-x509-name']
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
// set parameters if they exist in the ovpn config
|
// set parameters if they exist in the ovpn config
|
||||||
let conditionalSet = (ovpnName, oncName, type = 'str') => {
|
let conditionalSet = (ovpnName, oncName, type = 'str') => {
|
||||||
if (ovpn[ovpnName]) {
|
if (ovpn[ovpnName]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user