From f41c6487114d7729d39ca874fc504d3b56bc33fe Mon Sep 17 00:00:00 2001 From: Mohammad Date: Fri, 3 Jan 2025 08:59:04 +0330 Subject: [PATCH] feat(xray): add hex type support for noise --- app/models/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proxy.py b/app/models/proxy.py index 959061df9..174922b65 100644 --- a/app/models/proxy.py +++ b/app/models/proxy.py @@ -19,7 +19,7 @@ FRAGMENT_PATTERN = re.compile(r'^((\d{1,4}-\d{1,4})|(\d{1,4})),((\d{1,3}-\d{1,3})|(\d{1,3})),(tlshello|\d|\d\-\d)$') NOISE_PATTERN = re.compile( - r'^(rand:(\d{1,4}-\d{1,4}|\d{1,4})|str:.+|base64:.+)(,(\d{1,4}-\d{1,4}|\d{1,4}))?(&(rand:(\d{1,4}-\d{1,4}|\d{1,4})|str:.+|base64:.+)(,(\d{1,4}-\d{1,4}|\d{1,4}))?)*$') + r'^(rand:(\d{1,4}-\d{1,4}|\d{1,4})|str:.+|hex:.+|base64:.+)(,(\d{1,4}-\d{1,4}|\d{1,4}))?(&(rand:(\d{1,4}-\d{1,4}|\d{1,4})|str:.+|hex:.+|base64:.+)(,(\d{1,4}-\d{1,4}|\d{1,4}))?)*$') class ProxyTypes(str, Enum):