mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 08:58:13 +01:00
Reduce the maximum number of versions in play to 1,000.
This commit is contained in:
committed by
Jon Chambers
parent
40684a93a2
commit
ad97731d46
@@ -26,7 +26,7 @@ public class UserAgentTagUtil {
|
||||
"desktop", Pattern.compile("^Signal Desktop (1[^ ]+).*$", Pattern.CASE_INSENSITIVE),
|
||||
"ios", Pattern.compile("^Signal/(3[^ ]+) \\(.*ios.*\\)$", Pattern.CASE_INSENSITIVE));
|
||||
|
||||
static final int MAX_VERSIONS = 10_000;
|
||||
static final int MAX_VERSIONS = 1_000;
|
||||
private static final Set<Pair<String, String>> SEEN_VERSIONS = new HashSet<>();
|
||||
|
||||
private UserAgentTagUtil() {
|
||||
|
||||
Reference in New Issue
Block a user