Giter Club home page Giter Club logo

v2ray_api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

v2ray_api's Issues

您好,请问您的该文件应该如何使用呢?

我尽可能从您提供的信息获取帮助,但是还是感觉比较迷惑,您所说的使用是否是新建一个py文件,在里面填写相关信息后进行调用,还是什么意思?而且我注意到您的项目似乎是支持ubuntu或者centos?应该就是Linux系统,如果我想先在Windows上进行测试,我应该进行哪方面的修改?
期待您的回复,可能会打扰到您。

关于添加SocksInbound的问题

您好,我在您的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
]
)
)

api

I WANT TO DEVELOP VPN ANDROI APP USING API (ASKED BY DEVELOPER)
SO IS THIS POSSIBLE.

Invalid User

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.