1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Fix benchmark quirk related to new ipaddress option

This commit is contained in:
Raymond Hill 2024-09-22 11:16:57 -04:00
parent e7c783cefa
commit bd6d9c3296
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -130,8 +130,6 @@ const loadBenchmarkDataset = (( ) => {
/******************************************************************************/
// action: 1=test
export async function benchmarkStaticNetFiltering(options = {}) {
const { target, redirectEngine } = options;
@ -174,7 +172,9 @@ export async function benchmarkStaticNetFiltering(options = {}) {
for ( let i = 0; i < requests.length; i++ ) {
const request = requests[i];
fctxt.setURL(request.url);
fctxt.setIPAddress('93.184.215.14\n2606:2800:21f:cb07:6820:80da:af6b:8b2c');
if ( fctxt.getIPAddress() === '' ) {
fctxt.setIPAddress('93.184.215.14\n2606:2800:21f:cb07:6820:80da:af6b:8b2c');
}
fctxt.setDocOriginFromURL(request.frameUrl);
fctxt.setType(request.cpt);
sfne.redirectURL = undefined;