PAC-file example for Yggstack

Yggstack is lightweight proxy server in Go, usually wanted to not represent TUN address into Yggdrasil network.

Firefox

Unlike static host/port setup, following configuration rewrites only IPv6 (0200::/7) and .ygg (Alfis DNS) requests:

function FindProxyForURL(url, host)
{
  if (/^0{0,1}[2-3][a-f0-9]{0,2}:/.test(host) || /\.ygg$/.test(host))
  {
    return 'SOCKS5 127.0.0.1:1080; DIRECT';
  }
}

Links

About PAC
Yggstack on GitHub