1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Typo corrected

This commit is contained in:
zbchristian 2020-06-29 13:36:38 +02:00 committed by GitHub
parent 33a099de61
commit 42032e0df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,10 @@ if (!empty($routes) ) {
if (isset($checkAccess) && $checkAccess) { if (isset($checkAccess) && $checkAccess) {
// check internet connectivity w/ and w/o DNS resolution // check internet connectivity w/ and w/o DNS resolution
unset($okip); unset($okip);
exec('ping -W1 -c 1 -I '.$prop[0].' '.ACCESS_CHECK_IP.' | sed -rn "s/.*icmp_seq=1.*time=.*/OK/p"',$okip); exec('ping -W1 -c 1 -I '.$prop[0].' '.RASPI_ACCESS_CHECK_IP.' | sed -rn "s/.*icmp_seq=1.*time=.*/OK/p"',$okip);
$rInfo[$i]["access-ip"] = empty($okip) ? false : true; $rInfo[$i]["access-ip"] = empty($okip) ? false : true;
unset($okdns); unset($okdns);
exec('ping -W1 -c 1 -I '.$prop[0].' '.ACCESS_CHECK_DNS.' | sed -rn "s/.*icmp_seq=1.*time=.*/OK/p"',$okdns); exec('ping -W1 -c 1 -I '.$prop[0].' '.RASPI_ACCESS_CHECK_DNS.' | sed -rn "s/.*icmp_seq=1.*time=.*/OK/p"',$okdns);
$rInfo[$i]["access-dns"] = empty($okdns) ? false : true; $rInfo[$i]["access-dns"] = empty($okdns) ? false : true;
} }
} }