Giter VIP home page Giter VIP logo

xraysub's Introduction

English | 简体中文

Xraysub

Test Quality Gate Status Go Report Card

A powerful cross-platform CLI client for Xray subscription.

Preview

$ ./xraysub.exe gen --url=https://comfysub.example.com
Requesting subscriptions from https://comfysub.example.com
Start detecting server's latency
        Detecting 100% [========================================]  [6s:0s]
Got fastest node "**-香港 IEPL(hk.example.com:61307)" with latency 127ms
The xray-core's configuration file is saved ./xray-config.json

Quick Start

Suppose the xray.exe and xraysub.exe are in the current directory.

.
├── xray.exe
└── xraysub.exe
  1. First run xraysub to get xray-core's configuration file.
$ ./xraysub.exe gen --url=https://comfysub.example.com
  1. Run xray-core
$ ./xray-core.exe -c xray-config.json
  1. Use the proxy
$ curl -x HTTPS_PROXY://127.0.0.1:1081 https://www.google.com

Param

$ .\xraysub.exe help gen
generate xray configuration file from subscription url

Usage:
  xraysub gen [flags]

Flags:
      --detect-latency             detect server's latency to choose the fastest node (default true)
      --detect-thread-number int   detect server's latency threads number (default 5)
  -h, --help                       help for gen
  -o, --output-file string         output configuration to file (default "./xray-config.json")
  -u, --url string                 subscription address(URL)
      --xray string                xray-core path for detecting server's latency (default "./xray.exe")
      --xray-http-port int         xray-core listen http port (default 1081)
      --xray-socks-port int        xray-core listen socks port (default 1080)

xraysub's People

Contributors

bpazy avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bb33bb ifrit2000

xraysub's Issues

Vmess support

目前 Vmess 协议仅支持 Vmess-TCP,其他子模式也需要支持。

配置文件详情可参考 XTLS/XRAY

  • VMess-HTTP
  • VMess-HTTP2
  • VMess-QUIC
  • VMess-TCP-TLS
  • VMess-TCP
  • VMess-Websocket-TLS
  • VMess-Websocket
  • VMess-mKCPSeed

支持根据订阅链接读取 vmess 格式的配置

形如:

vmess://eyJ2IjoiMiIsInBzIjoiIOWkh+azqOaIluWIq+WQjSAgIiwiYWRkIjoiMTExLjExMS4xMTEuMTExIiwicG9ydCI6IjMyMDAwIiwiaWQiOiIxMzg2Zjg1ZS02NTdiLTRkNmUtOWQ1Ni03OGJhZGI3NWUxZmQiLCJhaWQiOiIxMDAiLCJzY3kiOiJ6ZXJvIiwibmV0IjoidGNwIiwidHlwZSI6Im5vbmUiLCJob3N0Ijoid3d3LmJiYi5jb20iLCJwYXRoIjoiLyIsInRscyI6InRscyIsInNuaSI6Ind3dy5jY2MuY29tIn0=

格式: vmess://Base64编码的json格式服务器数据

参考 V2rayN 分享链接格式说明(ver 2)

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.