Skip to content

Commit

Permalink
Update vmess.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Jan 15, 2024
1 parent 89ffbaa commit 4d21a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsers/vmess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down Expand Up @@ -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
return node

0 comments on commit 4d21a48

Please sign in to comment.