sitespeedio / browsertime

Measure and Optimize Web Performance
https://www.sitespeed.io/documentation/browsertime/
Apache License 2.0
608 stars 137 forks source link

Fix --host-resolver-rules=.. #1953

Closed atuchin-m closed 1 year ago

atuchin-m commented 1 year ago

before (doesn't work):

--host-resolver-rules="MAP cache.pack.google.com 127.0.0.1","MAP clients1.google.com 127.0.0.1","MAP update.googleapis.com 127.0.0.1","MAP content-autofill.googleapis.com 127.0.0.1","MAP redirector.gvt1.com 127.0.0.1","MAP laptop-updates.brave.com 127.0.0.1","MAP offlinepages-pa.googleapis.com 127.0.0.1","MAP edge.microsoft.com 127.0.0.1","MAP optimizationguide-pa.googleapis.com 127.0.0.1"

after (OK):

--host-resolver-rules="MAP cache.pack.google.com 127.0.0.1,MAP clients1.google.com 127.0.0.1,MAP update.googleapis.com 127.0.0.1,MAP content-autofill.googleapis.com 127.0.0.1,MAP redirector.gvt1.com 127.0.0.1,MAP laptop-updates.brave.com 127.0.0.1,MAP offlinepages-pa.googleapis.com 127.0.0.1,MAP edge.microsoft.com 127.0.0.1,MAP optimizationguide-pa.googleapis.com 127.0.0.1"

The changes could be verified:

  1. via chrome://version
  2. visiting http://clients1.google.com/ or https://edge.microsoft.com and check that we get ERR_CONNECTION_REFUSED
soulgalore commented 1 year ago

Thanks @atuchin-m I can fix the linting issue.