[tor-commits] [check/master] Remove obsolete OrfoxUserAgents

arlo at torproject.org arlo at torproject.org
Wed Apr 21 13:49:01 UTC 2021


commit 3fcc20f4b2e3e9b1900eb21048bc3c9df1c55811
Author: Arlo Breault <abreault at wikimedia.org>
Date:   Wed Apr 21 09:46:54 2021 -0400

    Remove obsolete OrfoxUserAgents
---
 utils.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils.go b/utils.go
index ef74784..467a78f 100644
--- a/utils.go
+++ b/utils.go
@@ -56,10 +56,9 @@ func GetHost(r *http.Request) (host string, err error) {
 }
 
 var TBBUserAgents = regexp.MustCompile(`^Mozilla/5\.0 \([^)]*\) Gecko/([\d]+\.0|20100101) Firefox/[\d]+\.0$`)
-var OrfoxUserAgents = regexp.MustCompile(`^Mozilla/5\.0 \(Android; Mobile; rv:38.0\) Gecko/38.0 Firefox/38.0$`)
 
 func LikelyTBB(ua string) bool {
-	return TBBUserAgents.MatchString(ua) || OrfoxUserAgents.MatchString(ua)
+	return TBBUserAgents.MatchString(ua)
 }
 
 func FuncMap(domain *gettext.Domain) template.FuncMap {



More information about the tor-commits mailing list