Giter Club home page Giter Club logo

clashup's Introduction

clashup

An updator for clash on Archlinux

Install

$ git clone https://github.com/felinae98/clashup.git && cd clashup && makepkg -si

or use aur

yay -Sy clashup

and just

$ systemctl --user start clash

Config

The config file is ~/.config/clash/clashup.json

{
    "http_port": 7890,
    "socks5_port": 7891,
    "redir_port": 7892, 
    "allow_lan": true,
    "external_controller": "127.0.0.1:9090",
    "subscribe_url": "",
    "is_subscribe_banned": false, 
    "custom_rules": [],
    "mmdb_file_url": "http://www.ideame.top/mmdb/Country.mmdb",
    "mmdb_version_url": "http://www.ideame.top/mmdb/version"
}
  • Set is_subscribe_banned true if your subscribe address was banned.
  • http_port is required if is_subscribe_banned is true
  • If you both set mmdb_file_url and mmdb_version_url it will update Country.mmdb file every start up time.

How it works

It just simply download the subscribe config file and override http-port, socks-port, redir-port, allow-lan, external-controller in the config file, and append custom_rules to Rules.

If your can access your subscribe url directly, it just download and update config file before clash start.

Otherwise your subscribe url is banned, it download and update the config file after clash start and then restart clash.

FAQ

  • How to see log

    journalctl --user -u clash -e

  • How to add custom rules

    edit ~/.config/clash/clashup.json and systemctl --user restart clash

clashup's People

Contributors

felinae98 avatar sep2 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.