Skip to content

alexandru-eftimie/http-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-proxy

You can find an examples in /examples/

func main() {
	c := &httpproxy.Proxy{
		BindAddr: "0.0.0.0:998",
		AuthCallback: func(user, pass, ip string) bool {
			log.Printf("Authenticating %s, %s, %s, %t\n", user, pass, ip, true)
			return true
		},
		BandwidthCallback: func(user string, upload, download int64) {
			log.Printf("BWC Upload: %s, Download: %d, %d\n", user, upload, download)
		},
	}

	c.Run()
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages