// ListenAndServe listens on proxy.Address and then calls Serve to handle
// requests on incoming connections.
ListenAndServe listens on proxy.Address and then calls Serve to handle
requests on incoming connections.
// ListenAndServe listens on proxy . Address and then calls Serve to handle // requests on incoming connections .
func (p *HTTPSProxy) ListenAndServe() {
	server := http.NewServeMux()
	server.HandleFunc("/", p.HTTPProxy.ServeHTTP)
	log.Debugf("Handling https connection on %s", p.HTTPProxy.Address)
	err := http.ListenAndServeTLS(p.HTTPProxy.Address, p.TLS.Cert, p.TLS.Key, server)
	if err != nil {
		log.Fatalf("Error while listening https connection on %s: %v", p.HTTPProxy.Address, err)
	}
}
func ( p * HTTPSProxy ) ListenAndServe ( ) { server := http . NewServeMux ( ) server . HandleFunc ( " " , p . HTTPProxy . ServeHTTP ) log . Debugf ( " " , p . HTTPProxy . Address ) err := http . ListenAndServeTLS ( p . HTTPProxy . Address , p . TLS . Cert , p . TLS . Key , server ) if err != nil { log . Fatalf ( " " , p . HTTPProxy . Address , err ) } }
ListenAndServe listens on proxy.Address and then calls Serve to handle
requests on incoming connections.
ListenAndServe listens on proxy . Address and then calls Serve to handle requests on incoming connections .