Skip to content

Commit

Permalink
fix vless+ws+tls
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Oct 24, 2023
1 parent d1bcee3 commit dd97efc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parsers/vless.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def parse(data):
node['flow'] = 'xtls-rprx-vision'
if netquery.get('security', '') not in ['none', '']:
node['tls'] = {
'enabled': True
'enabled': True,
'insecure': True
}
if netquery.get('sni'):
node['tls']['server_name'] = netquery['sni']
Expand All @@ -42,7 +43,7 @@ def parse(data):
if netquery['type'] == 'ws':
node['transport'] = {
'type':'ws',
"path": netquery['path'],
"path": netquery.get('path', '').rsplit("?")[0],
"headers": {
"Host": netquery.get('sni', netquery.get('host', ''))
}
Expand Down

0 comments on commit dd97efc

Please sign in to comment.