Socket
Socket
Sign inDemoInstall

ipac

Package Overview
Dependencies
16
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ipac

生成根据 IP 自动选择代理的 PAC 文件


Version published
Maintainers
1
Install size
499 kB
Created

Readme

Source

#IPAC 生成根据 IP 自动识别国内外的 PAC 文件.

#安装

npm i ipac -g

#使用

curl http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest | grep "CN|ipv4" | ipac-tpl | ipac-pac -h zpn.so -p 8080

#简述 根据 apnic 的 IP 表, 计算出一个有序的数组, 从小到大, 奇数为下标连续的两个数字代表一段位于中国的 IP. 生成 PAC 文件的模板. 默认的模板采用二分策略, 判断访问的域名是否落在奇数下标上, 如果是则说明该 IP 属于中国, 否则不属于

FAQs

Last updated on 28 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc