Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openvpn is not defined #12

Open
MurhafSousli opened this issue Apr 8, 2018 · 1 comment
Open

openvpn is not defined #12

MurhafSousli opened this issue Apr 8, 2018 · 1 comment

Comments

@MurhafSousli
Copy link

MurhafSousli commented Apr 8, 2018

I am trying to use this library, I have the following

  openvpnBin
    .initialize(path.normalize('c:/Program Files/OpenVPN/bin/openvpn.exe'), {
      host: '176.126.237.217',
      port: 443,
      config: path.normalize('./ovpn/vpnbook-euro1-tcp443.ovpn')
    })
    .then(function() {
      console.log('openvpn running');

      const managerInstance = openvpnmanager.connect({
        host: '176.126.237.217',
        port: 443
      });

      managerInstance.on('connected', function() {
        managerInstance.authorize({
          user: 'vpnbook',
          pass: 'xf5s3d9'
        });
      });

      managerInstance.on('console-output', function(output) {
        console.log(output);
      });
    });

console log

openvpn running
Unhandled rejection ReferenceError: openvpn is not defined

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@MurhafSousli and others