mirror of https://github.com/dnomd343/ProxyC
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
573 B
21 lines
573 B
#!/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
|
|
|