speng4096 / v2ray_api Goto Github PK
View Code? Open in Web Editor NEWV2Ray API for Python
V2Ray API for Python
我尽可能从您提供的信息获取帮助,但是还是感觉比较迷惑,您所说的使用是否是新建一个py文件,在里面填写相关信息后进行调用,还是什么意思?而且我注意到您的项目似乎是支持ubuntu或者centos?应该就是Linux系统,如果我想先在Windows上进行测试,我应该进行哪方面的修改?
期待您的回复,可能会打扰到您。
请问下怎么获取用户列表
您好,我在您的client.py代码基础上增加了SocksInbound类,该类无users鉴权参数的情况传入到add_inbound方法可以正常使用Socks4/5代理。
增加用户鉴权参数也显示成功创建Socks代理,但是在IE和SwitchyOmega的客户端设置用户和密码鉴权,V2Ray控制台日志提示无效的用户和密码,代理上网请求失败,请问这段代码哪里出了问题?
问题简述:无鉴权代理成功,有鉴权代理失败(无效的用户和密码)
from .v2ray.com.core.proxy.socks import config_pb2 as socks_config_pb2
class Proxy(object):
"""代理配置的基类"""
def init(self):
self.message = None
class SocksInbound(Proxy):
"""Socks传入连接配置"""
def init(self, *users: dict):
"""
:param users: 包含'user','pass'字段的字典
"""
super(SocksInbound, self).init()
noauth = users is None or len(users) < 1
self.message = to_typed_message(
socks_config_pb2.ServerConfig(
auth_type=0 if noauth else 1,
accounts=[
{
"username":u['user'],
"password":u['pass']
} for u in users
]
)
)
I WANT TO DEVELOP VPN ANDROI APP USING API (ASKED BY DEVELOPER)
SO IS THIS POSSIBLE.
Hi, I am trying to user your code to connect to v2ray and add users, I manage to connect but I get "invalid user" any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.