func handleTunnel(w http.ResponseWriter, r *http.Request) // Extract destination from CONNECT request destConn, err := net.Dial("tcp", r.Host) if err != nil http.Error(w, err.Error(), http.StatusServiceUnavailable) return
return nil
http.Error(w, "Only CONNECT method allowed", http.StatusMethodNotAllowed) ),
func handleTunnel(w http.ResponseWriter, r *http.Request) // Extract destination from CONNECT request destConn, err := net.Dial("tcp", r.Host) if err != nil http.Error(w, err.Error(), http.StatusServiceUnavailable) return
return nil
http.Error(w, "Only CONNECT method allowed", http.StatusMethodNotAllowed) ), remote proxy for http injector