We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excuse me, how to print client IP addrs on my server?
func main() { flag.Usage = func() { flag.PrintDefaults() } flag.Parse() if serverPort == "" { log.Fatalln("Error: please setting correct server port") } endProxy := goproxy.NewProxyHttpServer() endProxy.Verbose = true auth.ProxyBasic(endProxy, "my_realm", func(user, pwd string) bool { return user == username && pwd == password }) log.Println("serving proxy server port at", serverPort) http.ListenAndServe(":"+serverPort, endProxy) fmt.Println("The proxy server end.") }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Excuse me, how to print client IP addrs on my server?
func main() {
flag.Usage = func() {
flag.PrintDefaults()
}
flag.Parse()
if serverPort == "" {
log.Fatalln("Error: please setting correct server port")
}
endProxy := goproxy.NewProxyHttpServer()
endProxy.Verbose = true
auth.ProxyBasic(endProxy, "my_realm", func(user, pwd string) bool {
return user == username && pwd == password
})
log.Println("serving proxy server port at", serverPort)
http.ListenAndServe(":"+serverPort, endProxy)
fmt.Println("The proxy server end.")
}
The text was updated successfully, but these errors were encountered: