Ping 10 times when bringing tunnel up

This commit is contained in:
Scott Ullrich 2005-07-11 00:18:31 +00:00
parent 7d479f5a52
commit 68c521780c

View File

@ -402,7 +402,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}");
}
}
}