Skip to content

Commit

Permalink
Fix benchmark quirk related to new ipaddress option
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 22, 2024
1 parent e7c783c commit bd6d9c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ const loadBenchmarkDataset = (( ) => {

/******************************************************************************/

// action: 1=test

export async function benchmarkStaticNetFiltering(options = {}) {
const { target, redirectEngine } = options;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bd6d9c3

Please sign in to comment.