mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
openvpnctrl: Force 'modprobe tun' before starting the openvpn daemon.
This commit is contained in:
@@ -439,7 +439,9 @@ void startNet2Net(char *name) {
|
||||
setFirewallRules();
|
||||
|
||||
char command[STRING_SIZE];
|
||||
sprintf(command, "/usr/sbin/openvpn --config %s", configfile);
|
||||
snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun");
|
||||
executeCommand(command);
|
||||
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config %s", configfile);
|
||||
executeCommand(command);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user