Skip to content

Convert PAC to a simple http proxy to use PAC proxies on applications without PAC support

License

Notifications You must be signed in to change notification settings

ssz66666/pac2http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pac2HTTP

Pac2HTTP is a package for exposing proxy auto-config (PAC) files as a simple HTTP proxy, so that applications without PAC support can utilise PAC's flexibility.

Installation

go get github.com/ssz66666/pac2http

Example

package main

import (
	"log"
	"net/http"

	"github.com/ssz66666/pac2http"
)

func main() {
	listening := ":8080"
	svr, err := pac2http.NewPacProxyHTTPServerWithURL(
		"https://raw.githubusercontent.com/petronny/gfwlist2pac/master/gfwlist.pac",
	)
    if err != nil {
        log.Fatal(err)
    }
	log.Printf("Listening on %s\n", listening)
	log.Fatal(http.ListenAndServe(listening, svr))
}

About

Convert PAC to a simple http proxy to use PAC proxies on applications without PAC support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages