sing/transport/mixed/pac.go
2022-06-28 22:16:48 +08:00

12 lines
222 B
Go

package mixed
import (
"net/netip"
)
func newPAC(proxyAddr netip.AddrPort) string {
return `
function FindProxyForURL(url, host) {
return "SOCKS5 ` + proxyAddr.String() + `; PROXY ` + proxyAddr.String() + `";
}`
}