DAILY DOCDAILY DOC
Rust
Node
Notes
Ubuntu
Leetcode
  • it-tools
  • excalidraw
  • linux-command
Rust
Node
Notes
Ubuntu
Leetcode
  • it-tools
  • excalidraw
  • linux-command
  • linux
  • bash alias
  • chmod
  • linux useful command
  • date
  • extract translation from git diff
  • fail2ban
  • globbing
  • localhost
  • mail
  • memo 内存测试
  • nohup(no hang up)
  • setup env
  • ssh

    • ssh 教程
    • github clone
    • ssh.localhost.run 端口转发
    • ssh 安全
  • systemd service
  • 分析ubuntu系统登录日志文件
  • vpn

    • vpn 教程
    • Algo
    • clashX
    • firezone
    • lantern
    • pac 代理配置
    • Setup vpn
    • shadowsocks
    • VPN
    • VPN 速度优化
    • wireguard cron
    • 修改wireguard端口
  • webhook

pac 代理配置

pac 文件是一个 JavaScript 脚本文件,决定网页请求使用的流量是直接俩节目标地址,还是转发给一个网页代理服务器并通过代理连接

核心函数

function FindProxyForURL(url: string, host: string): string {
  //
}

返回值

  • 返回值为空 不使用任何代理
  • 返回值为分号分隔的代理配置块
    • DIRECT 直连 相当于返回值为空
    • RPOXY HOST:PORT
    • SOCKS HOST:PORT
    • HTTP HOST:PORT HTTPS HOST:PORT SOCKS4 HOST:PORT SOCKS5 HOST:PORT 不一定支持

Reference

  • mdn-proxy-auto-config
Last Updated:
Contributors: rosendo
Prev
lantern
Next
Setup vpn