Assign tls for Trojan security by default

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-09-20 11:18:26 +08:00
parent d6e4780d68
commit 1441659fc5
+2 -1
View File
@@ -408,7 +408,8 @@ class ImportLinkAction(Action):
password, address, port = re.split(r'[@:]', parseResult.netloc)
type_ = queryObject.get('type', 'tcp')
security = queryObject.get('security', 'none')
# For Trojan: Assign tls by default
security = queryObject.get('security', 'tls')
# Remove redundant items
queryObject.pop('type', '')