temp
Browse files- App/app.py +3 -2
App/app.py
CHANGED
@@ -40,11 +40,12 @@ async def connect_to_vpn():
|
|
40 |
# For example, if using OpenVPN:
|
41 |
command = [
|
42 |
"openvpn",
|
43 |
-
"--dev",
|
44 |
-
"null",
|
45 |
"--config",
|
46 |
f"{os.path.dirname(__file__)}/Mikrotik/utils/client1-working.ovpn",
|
|
|
|
|
47 |
]
|
|
|
48 |
print(f"{os.path.dirname(__file__)}/Mikrotik/utils/client1-working.ovpn")
|
49 |
process = subprocess.Popen(command)
|
50 |
await asyncio.sleep(5) # Wait for a few seconds to ensure the VPN connects
|
|
|
40 |
# For example, if using OpenVPN:
|
41 |
command = [
|
42 |
"openvpn",
|
|
|
|
|
43 |
"--config",
|
44 |
f"{os.path.dirname(__file__)}/Mikrotik/utils/client1-working.ovpn",
|
45 |
+
"--dev",
|
46 |
+
"null", # Simulate device without needing /dev/net/tun
|
47 |
]
|
48 |
+
|
49 |
print(f"{os.path.dirname(__file__)}/Mikrotik/utils/client1-working.ovpn")
|
50 |
process = subprocess.Popen(command)
|
51 |
await asyncio.sleep(5) # Wait for a few seconds to ensure the VPN connects
|