Coder Social home page Coder Social logo

xrayhelper's Introduction

English | 简体中文

XrayHelper

A unified helper for Android to control system proxy, some scripts in Xray4Magisk rewritten with golang, provide arm64 and amd64 binary.

Config

XrayHelper use yml format configuration file, default is /data/adb/xray/xrayhelper.yml, and you can customize the path with the -c option.
Example of xrayhelper config

Commands

Control Core Service

xrayhelper service start, start core service
xrayhelper service stop, stop core service
xrayhelper service restart, restart core service
xrayhelper service status, show core status

Control System Proxy

xrayhelper proxy enable, enable system proxy
xrayhelper proxy disable, disable system proxy
xrayhelper proxy refresh, refresh system proxy rule

Update Components

  • update core
    xrayhelper update core, should configure xrayHelper.coreType first
  • update tun2socks
    xrayhelper update tun2socks, update tun2socks from heiher/hev-socks5-tunnel
  • update geodata
    xrayhelper update geodata, update geodata from Loyalsoldier/v2ray-rules-dat
  • update subscribe
    xrayhelper update subscribe, update your subscribe, should configure xrayHelper.subList first
  • update yacd-meta
    xrayhelper update yacd-meta, update yacd-meta for mihomo(clash.meta), dest path is ${xrayHelper.dataDir}/Yacd-meta-gh-pages

Switch Proxy Node

xray, v2ray, sing-box

  • switch subscribe nodes
    xrayhelper switch, should configure xrayHelper.proxyTag and update subscribe first, warning: it will replace your outbounds configuration which has the same proxy tag
  • switch custom nodes
    xrayhelper switch custom, put custom nodes share link into ${xrayHelper.dataDir}/custom.txt file, then you can find them use this command

mihomo(clash.meta)

  • switch subscribe config
    xrayhelper switch, should update subscribe first
  • switch custom config
    xrayhelper switch example.yaml, use ${xrayHelper.coreConfig}/example.yaml file as config

notice: ${xrayHelper.clash.template} will overwrite(or inject) selected config above

License

Mozilla Public License Version 2.0 (MPL)

Credits

xrayhelper's People

Contributors

whalechoi avatar dependabot[bot] avatar

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.