mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-18 22:12:40 +00:00
22 lines
611 B
Text
22 lines
611 B
Text
# 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:
|
|
|
|
``` file:///path/to/proxy.pac
|
|
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
|
|
|
|
=> https://en.wikipedia.org/wiki/Proxy_auto-config About PAC
|
|
=> https://github.com/yggdrasil-network/yggstack Yggstack on GitHub
|