mirror of https://github.com/dnomd343/ProxyC
dnomd343
2 years ago
4 changed files with 29 additions and 4 deletions
@ -0,0 +1,21 @@ |
|||||
|
#!/usr/bin/env python3 |
||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
from Utils.Logger import logger |
||||
|
from Decoder.V2ray import v2ray |
||||
|
from Utils.Common import checkScheme, splitTag |
||||
|
|
||||
|
def vless(url: str) -> dict: |
||||
|
""" |
||||
|
https://github.com/XTLS/Xray-core/discussions/716 |
||||
|
|
||||
|
FORMAT: aka Decoder.V2ray |
||||
|
""" |
||||
|
config = { |
||||
|
'type': 'vless' |
||||
|
} |
||||
|
logger.debug('VLESS url decode -> %s' % url) |
||||
|
url, config['name'] = splitTag(checkScheme(url, 'vless', 'VLESS')) |
||||
|
config['info'] = v2ray(url, isXtls = True) |
||||
|
logger.debug('VLESS url release -> %s' % config) |
||||
|
return config |
@ -1,6 +1,7 @@ |
|||||
#!/usr/bin/env python3 |
#!/usr/bin/env python3 |
||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
from Decoder.VLESS import vless |
||||
from Decoder.ShadowsocksR import ssr |
from Decoder.ShadowsocksR import ssr |
||||
from Decoder.VMess import vmess, v2rayN |
from Decoder.VMess import vmess, v2rayN |
||||
from Decoder.Shadowsocks import ss, sip002 |
from Decoder.Shadowsocks import ss, sip002 |
||||
|
Loading…
Reference in new issue