Skip to content

Commit

Permalink
chore: update the user agent we use (#1344)
Browse files Browse the repository at this point in the history
While there, make sure there are no changes in STUN servers.

Part of ooni/probe#2524
  • Loading branch information
bassosimone authored Oct 4, 2023
1 parent b52b963 commit 1f93991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/model/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const (
HTTPHeaderAcceptLanguage = "en-US,en;q=0.9"

// HTTPHeaderUserAgent is the User-Agent header used for measuring. The current header
// is 22.0% of the browser population as of Jun 06, 2023 according to the
// is 20.2% of the browser population as of 2023-10-04 according to the
// https://techblog.willshouse.com/2012/01/03/most-common-user-agents/ webpage.
HTTPHeaderUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
HTTPHeaderUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
)

// Additional strings used to report HTTP errors. They're currently only used by
Expand Down
2 changes: 1 addition & 1 deletion internal/stuninput/stuninput.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// TODO(bassosimone): we need to keep this list in sync with
// the list internally used by TPO's snowflake.
//
// We should sync with https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/blob/main/projects/common/bridges_list.snowflake.txt
// We should sync with https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/blob/main/projects/tor-expert-bundle/pt_config.json
var inputs = map[string]bool{
"stun.l.google.com:19302": true,
"stun.antisip.com:3478": true,
Expand Down

0 comments on commit 1f93991

Please sign in to comment.