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.
38 lines
828 B
38 lines
828 B
import ProxyDecoder as Decoder
|
|
import ProxyFilter as Filter
|
|
import Check as Checker
|
|
|
|
# url = 'trojan://dnomd343@127.0.0.1:12345?security=tls&sni=local.343.re'
|
|
url = 'trojan://dnomd343@local.343.re:12345'
|
|
|
|
ret = Decoder.decode(url)
|
|
print(ret)
|
|
#
|
|
status, ret = Filter.filte(ret, isExtra = True)
|
|
print(status)
|
|
print(ret)
|
|
|
|
# info = {
|
|
# 'type': 'vmess',
|
|
# 'server': 'baidu.com',
|
|
# 'port': 12345,
|
|
# 'id': 'a859f794-1fcb-422e-bcad-3264dcea1f12',
|
|
# 'aid': 0,
|
|
# 'stream': {
|
|
# 'type': 'ws',
|
|
# 'host': 'host.343.re',
|
|
# 'secure': {
|
|
# # 'sni': 'sni.343.re'
|
|
# }
|
|
# }
|
|
# }
|
|
|
|
# status, ret = Filter.filte(info, isExtra = True)
|
|
# print(status)
|
|
# print(ret)
|
|
|
|
data = Checker.proxyTest({
|
|
'check': ['http'],
|
|
'info': ret
|
|
})
|
|
print(data)
|
|
|