Ping 10 times to bring up tunnel

This commit is contained in:
Scott Ullrich 2005-07-12 23:26:36 +00:00
parent 5c9cc1decd
commit b5facc062e

View File

@ -528,7 +528,7 @@ EOD;
$remotehost = substr($tunnel['remote-subnet'],0,strpos($tunnel['remote-subnet'],"/"));
$srchost = vpn_endpoint_determine($tunnel, $curwanip);
if ($srchost)
mwexec_bg("/sbin/ping -c 1 -S {$srchost} {$remotehost}");
mwexec_bg("/sbin/ping -c 10 -S {$srchost} {$remotehost}");
}
}
}