Coder Social home page Coder Social logo

airport-link-inspect's Introduction

airport-link-inspect

Description

Inspect link access/landing point metadata for Clash users, especially for services using IEPL/IPLC forwarding.

It would return the following information:

  • desc: name of the proxy
  • proxy_info: proxy info in Clash config file
  • access_point: domestic access server's ip metadata
  • landing_point: overseas landing server's ip metadata
  • min_rtt: minimum round trip time(ms) probing https://www.gstatic.com/generate_204
  • supports_udp: if proxy supports udp forwarding

Usage

go run ./cmd/main.go -config $HOME/.config/clash/config.yaml -matcher 香港 | jq

Example output

[{
  "desc": "香港1",
  "access_point": [
    {
      "code": 200,
      "ip": "134.175.75.151",
      "msg": "success",
      "result": {
        "Country": "**",
        "CountryCode": "CN",
        "Region": "华南",
        "RegionCode": "800000",
        "Province": "广东省",
        "ProvinceCode": "440000",
        "City": "广州市",
        "CityCode": "440100",
        "Isp": "电信",
        "IspCode": "100017"
      }
    }
  ],
  "landing_point": {
    "asOrganization": "G-Core Labs SA",
    "asn": 199524,
    "city": "Central",
    "clientIP": "xxx.xxx.xxx.xxx",
    "colo": "HKG",
    "country": "HK",
    "hostname": "speed.cloudflare.com",
    "httpProtocol": "HTTP/1.1",
    "latitude": "22.29080",
    "longitude": "114.15010",
    "region": "Central and Western District"
  },
  "min_rtt": 51,
  "supports_udp": true,
  "proxy_info": {
    "cipher": "aes-256-gcm",
    "name": "香港1",
    "password": "my_strong_password",
    "port": 6666,
    "server": "hk.my-server.com",
    "type": "ss"
  }
}]

airport-link-inspect's People

Contributors

buptsb avatar

Watchers

 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.