mirror of https://github.com/dnomd343/ProxyC
Dnomd343
3 years ago
7 changed files with 89 additions and 36 deletions
@ -1,11 +1,38 @@ |
|||
import ProxyDecoder as Decoder |
|||
import ProxyFilter as Filter |
|||
import Check as Checker |
|||
|
|||
url = 'trojan://dnomd343@1.1.1.1:443?security=tls&type=tcp&headerType=http&host=ip.343.re' |
|||
# 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) |
|||
|
Loading…
Reference in new issue