mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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();
|
setFirewallRules();
|
||||||
|
|
||||||
char command[STRING_SIZE];
|
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);
|
executeCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user