mirror of https://github.com/dnomd343/ProxyC
Dnomd343
3 years ago
2 changed files with 37 additions and 26 deletions
@ -1,23 +1,25 @@ |
|||||
import ProxyDecoder as Decoder |
import ProxyDecoder as Decoder |
||||
import ProxyFilter as Filter |
import ProxyFilter as Filter |
||||
|
|
||||
info = { |
# info = { |
||||
'type': 'vless', |
# 'type': 'vless', |
||||
'server': '127.0.0.1', |
# 'server': '127.0.0.1', |
||||
'port': 12345, |
# 'port': 12345, |
||||
'id': '1b1757d2-2ff1-4e8d-b62e-4e74c06f1325', |
# 'id': '1b1757d2-2ff1-4e8d-b62e-4e74c06f1325', |
||||
'stream': { |
# 'stream': { |
||||
'type': 'grpc', |
# 'type': 'grpc', |
||||
'service': 'dnomd343' |
# 'service': 'dnomd343' |
||||
} |
# } |
||||
} |
# } |
||||
|
|
||||
ret = Filter.filte(info) |
# ret = Filter.filte(info) |
||||
|
# print(ret) |
||||
|
|
||||
|
url = 'vmess://1b1757d2-2ff1-4e8d-b62e-4e74c06f1325@1.1.1.1:443' |
||||
|
|
||||
|
ret = Decoder.decode(url) |
||||
print(ret) |
print(ret) |
||||
|
|
||||
# ret = Decoder.decode(url) |
status, ret = Filter.filte(ret, isExtra = True) |
||||
# print(ret) |
print(status) |
||||
# |
print(ret) |
||||
# status, ret = Filter.filte(ret, isExtra = True) |
|
||||
# print(status) |
|
||||
# print(ret) |
|
||||
|
Loading…
Reference in new issue