[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 3fcc20f4b2e3e9b1900eb21048bc3c9df1c55811
Author: Arlo Breault <abreault@xxxxxxxxxxxxx>
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 {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits