Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-vpn-daemon

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vpn-daemon - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

10

dist/src/main.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc