go-proxy/main.go

16 lines
183 B
Go
Raw Normal View History

2019-06-18 01:05:06 +00:00
package main
import (
"log"
"os"
)
func main() {
p := Server{
Addr: os.Getenv("SOURCE_ADDR"),
Target: os.Getenv("DESTINATION_ADDR"),
}
log.Panicln(p.ListenAndServe())
}