Giter Club home page Giter Club logo

pac's Introduction

A PAC for freedom and more.

How to use

PAC: https://pac.txthinking.com/:MODE/:PROXY

  • MODE is one of:

    • white: Domains in the white.list will be connected directly, others will be connected through the proxy.
    • black: Domains in the black.list will be connected through the proxy, others will be connected directly.
    • all: All domains will be connected through the proxy.
  • PROXY can be this: (replace 127.0.0.1:8888 with your own proxy server address)

    • DIRECT for no proxy
    • PROXY 127.0.0.1:8888 for http proxy
    • SOCKS5 127.0.0.1:8888; SOCKS 127.0.0.1:8888 for socks5 proxy

This online pac will automatically update from github every 24h

Example:

  • White list mode: https://pac.txthinking.com/white/SOCKS5%20127.0.0.1:1080;%20SOCKS%20127.0.0.1:1080 [Recommend]
  • Black list mode: https://pac.txthinking.com/black/SOCKS5%20127.0.0.1:1080;%20SOCKS%20127.0.0.1:1080
  • All mode: https://pac.txthinking.com/all/PROXY%20127.0.0.1:8118

Developer

Install

$ go get github.com/txthinking/pac

PAC USAGE

[USAGE]:
   $ PAC [OPTIONS]

[OPTIONS]
    --listen value       Listen address. (default: ":1901")
    --white value        White list file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/white.list")
    --black value        Black list file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/black.list")
    --customize value    Customized map file path or http link. (default: "https://raw.githubusercontent.com/txthinking/pac/master/customize.map")
    --cycle value        Cycle time(s) for updating white list and/or black list and/or customized map from the source. (default: 0)
    --help, -h           show help
    --version, -v        print the version

How to update white/black list

  • Don't edit white.list/black.list directly
  • Use the *.sh to update the white.list/black.list:
  • $ addWhite.sh [domains]. ep: $ addWhite.sh china.com
  • $ removeWhite.sh [domains]. ep: $ removeWhite.sh china.com
  • $ addBlack.sh [domains]. ep: $ addBlack.sh google.com
  • $ removeBlack.sh [domains]. ep: $ removeBlack.sh google.com
  • Domain: prefer first-level domain.
  • PR Welcome

Thanks to

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.