http-proxy

module
v0.0.0-...-343d94b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2022 License: GPL-3.0

README

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()
}

Directories

Path Synopsis
src
"alexeftimie:tTzmG0lgVj5HT7fY@proxy.packetstream.io:31112"
"alexeftimie:tTzmG0lgVj5HT7fY@proxy.packetstream.io:31112"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL