Skip to content

Commit

Permalink
add vmess multiplex
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Oct 30, 2023
1 parent 89e049b commit 8df50e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions parsers/vmess.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,16 @@ def parse(data):
'type':'grpc',
'service_name':item.get('path', '')
}
if item.get('protocol'):
node['multiplex'] = {
'enabled': True,
'protocol': item['protocol'],
'max_streams': int(item.get('max_streams', '0'))
}
if item.get('max_connections'):
node['multiplex']['max_connections'] = int(item['max_connections'])
if item.get('min_streams'):
node['multiplex']['min_streams'] = int(item['min_streams'])
if item.get('padding') == True:
node['multiplex']['padding'] = True
return node

0 comments on commit 8df50e0

Please sign in to comment.