diff --git a/parsers/vmess.py b/parsers/vmess.py index 8181d2c69..a6bea1af4 100644 --- a/parsers/vmess.py +++ b/parsers/vmess.py @@ -70,7 +70,7 @@ def parse(data): 'server': item.get('add'), 'server_port': int(item.get('port')), 'uuid': item.get('id'), - 'security': item.get('scy') if item.get('scy') != 'http' else 'auto', + 'security': item.get('scy') if item.get('scy') not in ['http', None] else 'auto', 'alter_id': int(item.get('aid','0')), 'packet_encoding': 'xudp' } @@ -139,4 +139,4 @@ def parse(data): node['multiplex']['min_streams'] = int(item['min_streams']) if item.get('padding') == True: node['multiplex']['padding'] = True - return node \ No newline at end of file + return node