Update networktool.php

This commit is contained in:
Namhyeon Go 2022-09-16 16:02:16 +09:00 committed by GitHub
parent 3d602957d3
commit 161029471a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,3 +126,11 @@ if(!is_fn("get_network_outbound_addr")) {
return $addr;
}
}
if(!is_fn("detect_perf_agent")) {
function detect_perf_agent() {
$evt = get_network_event();
$agent = $ent['agent'];
return preg_match('(PingdomPageSpeed|GTmetrix)', $data) === 1);
}
}