Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipac

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipac

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

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 27 Apr 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc