node-vpn-daemon
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -31,9 +31,9 @@ "use strict"; | ||
if (plat === 'win32') { | ||
command = `start cmd @cmd /k openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --register-dns --askpass `; | ||
command = `start cmd @cmd /k openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --register-dns`; | ||
} | ||
else if (plat === 'darwin') { | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon --askpass`; | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon`; | ||
} | ||
else if (plat === 'linux') { | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon --askpass --dev tun0`; | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon --dev tun0`; | ||
} | ||
@@ -54,3 +54,3 @@ if (plat === 'darwin' || plat === 'linux') { | ||
if (runner) { | ||
return waitMS(this.wait); | ||
return yield waitMS(this.wait); | ||
} | ||
@@ -71,3 +71,3 @@ throw new Error('Error starting VPN Daemon'); | ||
} | ||
return waitMS(this.wait); | ||
return yield waitMS(this.wait); | ||
} | ||
@@ -74,0 +74,0 @@ catch (err) { |
{ | ||
"name": "node-vpn-daemon", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "OpenVpn Daemon, to be used with node-vpn-client.", | ||
@@ -5,0 +5,0 @@ "engineStrict": true, |
@@ -58,6 +58,6 @@ import * as util from 'util' | ||
: plat === 'linux' | ||
? 'ps -A' | ||
: plat === 'darwin' | ||
? 'px -ax | grep ' + cmd | ||
: '' | ||
? 'ps -A' | ||
: plat === 'darwin' | ||
? 'px -ax | grep ' + cmd | ||
: '' | ||
if (cmd === '') { | ||
@@ -79,15 +79,7 @@ return false | ||
if (plat === 'win32') { | ||
command = `start cmd @cmd /k openvpn --management ${this.host} ${ | ||
this.port | ||
} --config "${ | ||
this.ovpnFile | ||
}" --script-security 2 --management-query-passwords --management-hold --register-dns --askpass ` | ||
command = `start cmd @cmd /k openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --register-dns` | ||
} else if (plat === 'darwin') { | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${ | ||
this.ovpnFile | ||
}" --script-security 2 --management-query-passwords --management-hold --daemon --askpass` | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon` | ||
} else if (plat === 'linux') { | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${ | ||
this.ovpnFile | ||
}" --script-security 2 --management-query-passwords --management-hold --daemon --askpass --dev tun0` | ||
command = `sudo openvpn --management ${this.host} ${this.port} --config "${this.ovpnFile}" --script-security 2 --management-query-passwords --management-hold --daemon --dev tun0` | ||
} | ||
@@ -108,3 +100,3 @@ | ||
if (runner) { | ||
return waitMS(this.wait) | ||
return await waitMS(this.wait) | ||
} | ||
@@ -132,3 +124,3 @@ throw new Error('Error starting VPN Daemon') | ||
} | ||
return waitMS(this.wait) | ||
return await waitMS(this.wait) | ||
} catch (err) { | ||
@@ -135,0 +127,0 @@ console.log('Error killing OpenVpn process - ' + err) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
24571
356