apex-go icon indicating copy to clipboard operation
apex-go copied to clipboard

Add ListenAndServe for transparent proxy support

Open tj opened this issue 8 years ago • 0 comments

Instead of:

	if os.Getenv("LAMBDA_FUNCTION_NAME") == "" {
		log.Fatal(http.ListenAndServe(":5555", h))
	} else {
		apex.Handle(proxy.Serve(h))
	}

Just do:

log.Fatal(apex.ListenAndServe(":5555", h))

and let this pkg handle that

tj avatar May 31 '17 18:05 tj