From 002728b47f15512ec6943b028e5fd4f6ca7a7d08 Mon Sep 17 00:00:00 2001 From: shevonkuan Date: Tue, 3 Jan 2023 17:11:16 +0800 Subject: [PATCH] modified: Encoder/VLESS.py --- Encoder/VLESS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Encoder/VLESS.py b/Encoder/VLESS.py index abf3b6e..850246c 100644 --- a/Encoder/VLESS.py +++ b/Encoder/VLESS.py @@ -16,7 +16,7 @@ def vless(info: dict, name: str) -> str: # stream settings streamInfo = info['stream']['type'] - type = streamInfo['type'] + stremType = streamInfo['type'] flow = streamInfo.get('flow', None) headerType = streamInfo.get('obfs', 'none') host = streamInfo.get('host', None) @@ -25,7 +25,7 @@ def vless(info: dict, name: str) -> str: alpn = streamInfo.get('alpn', None) sni = streamInfo.get('sni', None) - link += 'type=' + type + '&' # add + link += 'type=' + stremType + '&' # add link += 'flow=' + flow + '&' if flow else '' # add link += 'headerType=' + headerType + '&' # add link += 'security=' + security + '&' if security else '' # add