mirror of https://github.com/dnomd343/ProxyC
Dnomd343
2 years ago
3 changed files with 39 additions and 1 deletions
@ -0,0 +1,7 @@ |
|||
#!/usr/bin/env python3 |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
def vless(info: dict) -> str: |
|||
""" |
|||
https://github.com/XTLS/Xray-core/discussions/716 |
|||
""" |
@ -0,0 +1,4 @@ |
|||
#!/usr/bin/env python3 |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from Encoder.VLESS import vless |
@ -1,4 +1,31 @@ |
|||
#!/usr/bin/env python3 |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
print('encoder test') |
|||
from Filter import Filter |
|||
|
|||
vless_demo_1 = { |
|||
'type': 'vless', |
|||
'name': '🇭🇰 DataGrids DMIT XTLS 1Gbps', |
|||
'info': { |
|||
'server': '54.142.232.16', |
|||
'port': 52227, |
|||
'method': 'none', |
|||
'id': '75e6edee-2c30-41b0-9d88-676c4fb19ee8', |
|||
'stream': { |
|||
'type': 'tcp', |
|||
'obfs': None, |
|||
'secure': { |
|||
'type': 'xtls', |
|||
'sni': 'proxy.demo.com', |
|||
'alpn': None, |
|||
'verify': True, |
|||
'flow': 'xtls-direct', |
|||
'udp443': False |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
vless_demo_1['info'] = Filter('vless', vless_demo_1['info']) |
|||
|
|||
print(vless_demo_1) |
|||
|
Loading…
Reference in new issue