diff --git a/.idea/PythonVPNGateway.iml b/.idea/PythonVPNGateway.iml
new file mode 100644
index 0000000..85c7612
--- /dev/null
+++ b/.idea/PythonVPNGateway.iml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..7cf35c2
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..50440ed
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..6a95b2e
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1560275194845
+
+
+ 1560275194845
+
+
+ 1560277848439
+
+
+
+ 1560277848439
+
+
+ 1560278425713
+
+
+
+ 1560278425713
+
+
+ 1560287808394
+
+
+
+ 1560287808394
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pyVPN.py b/pyVPN.py
deleted file mode 100644
index da52346..0000000
--- a/pyVPN.py
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import sys
-import pexpect
-import os.path
-import base64
-
-# This script can probably use some improvement
-
-process = os.environ['PYVPN_PROCESS_PATH']
-
-operatingDir = "/root"
-
-fScript = pexpect.spawn("/bin/bash" + process)
-
-if len(sys.argv) > 2:
-
- if sys.argv[2] == "--create-client":
-
- clientName = sys.argv[3]
- configFilePath = operatingDir + "/" + clientName + ".ovpn"
-
- fScript.expect(r'/(?:Select\ an\ option\ \[1\-4\]\:)/')
- fScript.sendline('1')
- fScript.expect(r'(?:Client\ name\:)')
- fScript.sendline(clientName)
- fScript.kill(0)
-
- if os.path.exists(configFilePath):
-
- file = open(configFilePath, 'r')
-
- finalResult = base64.b64encode(file.read())
-
- sys.stdout.write(finalResult)
- sys.stdout.flush()
- sys.exit(0)
-
- else:
- sys.stdout.write("Error! OpenVPN did not create the Configuration file.")
- sys.stdout.flush()
- sys.stdout.exit(1)
-
-
-
- else:
- sys.stdout.write("Error! Missing options!")
- sys.stdout.flush()
- sys.stdout.exit(2)
-
-else:
- sys.stdout.write("Error! Missing client name!")
- sys.stdout.flush()
- sys.stdout.exit(3)
diff --git a/pyvpn b/pyvpn
index 631c92d..88f2b7e 100755
--- a/pyvpn
+++ b/pyvpn
@@ -24,12 +24,9 @@ if len(sys.argv) > 2:
configFilePath = operatingDir + "/" + clientName + ".ovpn"
- fScript.expect("[1-4]:")
-
+ fScript.expect("[1-4]:")
fScript.sendline("1")
-
- fScript.expect("Client name: ")
-
+ fScript.expect("Client name: ")
fScript.sendline(clientName)
fScript.kill(0)