mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
@@ -140,6 +140,8 @@ void turn_connection_on (char *name, char *type) {
|
||||
|
||||
safe_system("/usr/sbin/ipsec reload >/dev/null");
|
||||
memset(command, 0, STRING_SIZE);
|
||||
/* give ipsec time to be ready */
|
||||
safe_system("/bin/sleep 2");
|
||||
snprintf(command, STRING_SIZE - 1,
|
||||
"/usr/sbin/ipsec up %s >/dev/null", name);
|
||||
safe_system(command);
|
||||
|
||||
Reference in New Issue
Block a user