refactor sql, logging, failure mgmt
This commit is contained in:
@@ -17,7 +17,7 @@ def establish_vpn_connection(ovpn_file, credential_file, log_file):
|
||||
# Establish VPN connection (capture stdout and stderr)
|
||||
openvpn_command = ["openvpn", "--config", ovpn_file,
|
||||
"--auth-user-pass", credential_file, "--daemon",
|
||||
"--log-append", log_file, "--verb", "3"]
|
||||
"--log-append", log_file, "--verb", "0", "--flush-log"] # Added --flush-log
|
||||
|
||||
process = subprocess.Popen(openvpn_command,
|
||||
stdin=subprocess.PIPE,
|
||||
|
||||
Reference in New Issue
Block a user