Git Product home page Git Product logo

Comments (3)

iotames avatar iotames commented on August 21, 2024

项目主页有写:README.md

就在使用说明的第5步。先运行服务端,再运行客户端命令 v2raypool.exe --getproxynodes 去查询。

5. 运行服务端和客户端

5.1 服务端

可执行文件直接运行,启动 gRPC 服务端

# linux 或 mac 执行 ./v2raypool
v2raypool.exe

5.2 客户端

gRPC 客户端交互命令:

# 启动v2ray代理池
v2raypool.exe --startproxynodes

# 查看v2ray代理池信息(包括:本地代理端口号,测速结果,运行状态,测速时间,节点名,节点索引)
v2raypool.exe --getproxynodes

# 测速(测速基准使用https://www.google.com)。测速结束后,会自动选择最快的节点作为系统代理节点。
v2raypool.exe --testproxynodes

# 根据索引值激活某个节点为系统代理的端口(--getproxynodes 查看索引值,系统代理端口从VP_HTTP_PROXY的值读取)
v2raypool.exe --activeproxynode=16

# 停止所有节点
v2raypool.exe --stopproxynodes

from v2raypool.

tp-life avatar tp-life commented on August 21, 2024

感谢,实际运行中报错: ---ParseV2rayNodes--Base64.Decode--err(illegal base64 data at input byte 64)---RAW(ss://YWVzLTE345yOC1nYxxxx206MzNiNWEyZWMtMmU3Mi00Zm2mUzLTg1OTItZDZhMzA4N2RmNDg3@example.xxx.com:12051#%F0%9F%87%B0%F0%9F%87%B)---%E9%9F%A9%E5%9B%BD%20%E4%B8%93%E7%BA%BF%20E1。 看样子是对订阅地址返回的数据解析失败了。请问对于解析的数据格式是什么样子的?上面的代理信息已经做过处理了,可以支持这种格式吗?

from v2raypool.

iotames avatar iotames commented on August 21, 2024

节点订阅源解析步骤

  1. 从订阅源的URL网址获取Base64加密过的字符串,里面包含所有代理节点的信息。
  2. 解析Base64字符串,得到以 \n 换行符分割的多个代理节点信息。每个节点信息也是被Base64加密过的。格式为: 协议://Base64加密字符串。如: ss://xxxxxxxxxxxxxxxvmess://XXXXXXXXXXXX==。 非法格式为: ss://[email protected]
  3. 解密Base64加密过的节点。如果解密失败,则该节点会被忽略,提示: ---ParseV2rayNodes--Base64.Decode--err,然后继续解密下个节点。
  4. 如果Base64解密成功,则结果为json字符串。再继续解析该json字符串信息。合法的json信息示例: {"add":"addr1.xxxxx.com","host":"","id":"93XXXXXX-EA21-7240-EE7F-317FXXXXXXXX","net":"ws","path":"","port":"444","ps":"xxxx-v2-HK-XXXXXX1","tls":"tls","type":"none","v":2,"aid":0}
    若解析错误则会提示: -ParseV2rayNodes--json.Unmarshal err--,然后继续下一个节点。

调试工具

from v2raypool.

Related Issues (19)

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.